Summary
DomNode.asText() depends on HtmlSerializer which internally formats lines using the value of System.lineSeparator() as the line separator.
As an API interface, this behaviour of DomNode.asText() and HtmlSerializer.asText() may be ill-suited, since applications are required to take this into consideration any time they're working with values returned by these methods.
Moreover, I believe EOL style is a function of the output medium (be it a text file or an OS console) and perhaps not something that should be done in a library, this far from the presentation layer.