output system, and use \n (the DOM linebreak character) when getting
output from text controls. Also fix some warnings. r=kin.
git-svn-id: svn://10.0.0.236/trunk@73925 18797224-902f-48f8-a5cc-f745e15eee43
30380, blockquote should be block (also from Daniel),
6079, URLs surrounded by quotes *and* angle brackets (from Ben Bucksch,
mozilla@bucksch.org),
translate test into perl (so it will eventually be runnable on mac)
and fix up some old tests (me).
git-svn-id: svn://10.0.0.236/trunk@62814 18797224-902f-48f8-a5cc-f745e15eee43
18012, 16800, maybe 17565 and 13278:
Integrate contributions from Ben Bucksch (mozilla@bucksch.org)
and Daniel Brattell (bratell@lysator.liu.se) to improve formatted
plaintext output, including adding text style indicators, improving
table output and wrapping, and fixing several wrapping/whitespace bugs.
Also update the auto tests to reflect some of the bugs recently fixed.
r=myself,mozilla@bucksch.org,bratell@lysator.liu.se
git-svn-id: svn://10.0.0.236/trunk@53104 18797224-902f-48f8-a5cc-f745e15eee43
format=flowed for mail plaintext output. Restructures the plaintext
output wrapping code, wholly or partially fixes numerous bugs in plaintext
output (13278, 13442, 17823, 17824, 13753, 12551), makes the automated
tests work on Windows and adds some new automated tests. r=akkana.
git-svn-id: svn://10.0.0.236/trunk@52653 18797224-902f-48f8-a5cc-f745e15eee43
- Rewrite wrapping logic for plaintext output sink,
and run all output through the wrapping/formatting Write method
(which now has logic to determine when we should be wrapping).
- Handle blockquote type=cite mail quotes.
- Write several new regression tests for plaintext output bugs,
and include those tests and their expected output into the
automated output test.
r=sfraser,harishd
git-svn-id: svn://10.0.0.236/trunk@50072 18797224-902f-48f8-a5cc-f745e15eee43
to add new flags (pass a flag in the constructor, rather than specific
booleans. This in order to fix:
11249: Add flag to write only the body in html output.
git-svn-id: svn://10.0.0.236/trunk@44308 18797224-902f-48f8-a5cc-f745e15eee43
- Fix bug 8607 by passing the XML decl and the doctype decl from the expat tokenizer to the XML DTD.
git-svn-id: svn://10.0.0.236/trunk@41106 18797224-902f-48f8-a5cc-f745e15eee43
- Add wrapcolumn setting to document encoders, and use it in the editor
- Fix numbered lists in the html to text sink stream.
git-svn-id: svn://10.0.0.236/trunk@37529 18797224-902f-48f8-a5cc-f745e15eee43
When prettyprinting is on, we will attempt to make the plaintext
mimic the look of the html; when off (as for copy/paste), we just
dump the text with no formatting information.
git-svn-id: svn://10.0.0.236/trunk@36966 18797224-902f-48f8-a5cc-f745e15eee43
In the case of the stream, the document is encoded using the document defined charset
or the user may override the charset.
Added constructors for creating a sink using a nsIOutputStream or an nsString.
Removed all HTML and TEXT encoding which relied on references to ostream. Using John McMullen's
platform independent streaming code in its place. :)
git-svn-id: svn://10.0.0.236/trunk@29963 18797224-902f-48f8-a5cc-f745e15eee43
document to HTML to Text. The charset information is first encoded
in XIF and then that information is used when interpretting the unicode
for output.
Added support to output character entity information which should address
bug 4709
git-svn-id: svn://10.0.0.236/trunk@29162 18797224-902f-48f8-a5cc-f745e15eee43