HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › Simple text wrapping
- This topic has 4 replies, 4 voices, and was last updated Jul 27, 2012
11:50:42 byPD4ML.
-
AuthorPosts
-
February 7, 2012 at 17:09#26676
I’m having an issue with line breaks on formatted number fields. That is, numbers will break across lines improperly.
Here is the .html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <title>TI</title> <style type="text/css"> *{font-weight:normal;font-family:Arial;font-size:12px;} </style> </head> <body> 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 80,000 </body> </html>and the output is attached.
Thanks for any assistance.
July 16, 2012 at 20:51#28861I am having this exact same problem. I can’t tell from the above code, but my situation often involves non-breaking white-space characters (u00A0), which PD4ML apparently refused to break on/before/after.
I was able to force PD4ML to not prefer breaking words at the comma over breaking words on white-space by replacing the comma character (u002C) with the ‘single low-9 quotation mark’ (u201A), which looks the same as a comma. Unfortunately, while PD4ML no longer breaks words up at the comma-like character, it’s now impossible to use CTRL-F to find numbers that you’d expect to have commas in them, and copy-pasting isn’t great either.
July 18, 2012 at 11:38#28862Just released maintenance version v380fx6 addresses the issue. Please give it a try.
July 26, 2012 at 21:34#28863@PD4ML wrote:
Just released maintenance version v380fx6 addresses the issue. Please give it a try.
I had similar problem and tried the version v380fx6 but it didn’t resolve it.
I was wondering if mine is related to the non-breaking space ?
My input HTML :
<TR><TD align=right>Test Number: </TD><TD align=left>1X 999 999 99 9999 999 0</TD></TR><TR><TD valign=top align=right><nobr> Reference Number(s): </nobr></TD><TD align=left><Table cellSpacing=0 cellPadding=0 width = 65%><TR><TD>99999400, 9999967, 999999300 </TD></TR>Out put PDF:
Test
1X 999 999 99 9999 999 0
Number:Reference
99999400, 9999967, 999999300
Number:—-
Thanks for the help.July 27, 2012 at 11:50#28864PD4ML does not support
<nobr>tag. And as I see the unsupported tag screens nowrap attribute, applied to a table cell.A current workaround is to remove
<nobr>and to define nowrap for<td> -
AuthorPosts
The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.
