Quantcast
Channel: PDFsharp - A .NET library for processing PDF
Viewing all articles
Browse latest Browse all 46

Closed Unassigned: RtfFormatter adds an extra space after non-breaking space [16466]

$
0
0
When I insert NBSP in the paragraph and render it with RtfDocumentRenderer, I get additional space after NBSP, and it is slightly noticeable in the resulting document.

Code sample
```c#
Document d = new Document();
Section s = d.AddSection();
Paragraph content = s.AddParagraph("Before NBSP");
content.AddCharacter(SymbolName.NonBreakableBlank);
content.AddText("after NBSP");

//this results in the following RTF code: Before NBSP\~ after NBSP
//while correct code is: Before NBSP\~after NBSP
```

This bug was spotted in version 1.32.4334.0.
Comments: Thanks for the feedback, issue is fixed with current internal builds of PDFsharp 1.50.

Are there other control words besides "\~" that must not be followed by a space?

Viewing all articles
Browse latest Browse all 46

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>