Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #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.

    #28861

    I 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.

    #28862

    Just released maintenance version v380fx6 addresses the issue. Please give it a try.

    #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.

    #28864

    PD4ML 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>

Viewing 5 posts - 1 through 5 (of 5 total)

The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.