bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #48835] preformatted text does not retain adjacent spaces using ps,


From: anonymous
Subject: [bug #48835] preformatted text does not retain adjacent spaces using ps, pdf, html output devices
Date: Sat, 20 Aug 2016 15:50:17 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586

URL:
  <http://savannah.gnu.org/bugs/?48835>

                 Summary: preformatted text does not retain adjacent spaces
using ps,pdf, html output devices
                 Project: GNU troff
            Submitted by: None
            Submitted on: Sat 20 Aug 2016 03:50:15 PM UTC
                Severity: 3 - Normal
              Item Group: Incorrect behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

Terminal devices properly retain spaces when using .na or .nf, but when "groff
-T DRIVER" is used and DRIVER is ps, html, or pdf spaces are not retained
correctly in pre-formatted text. For example, using the following input file:

.nf
>  HH      HH  EEEEEEEEEE  LL          LL           OOOOOOOO
>  HH      HH  EEEEEEEEEE  LL          LL          OOOOOOOOOO
>  HH      HH  EE          LL          LL          OO     OOO
>  HH      HH  EE          LL          LL          OO    O OO
>  HHHHHHHHHH  EEEEE       LL          LL          OO   O  OO
>  HHHHHHHHHH  EEEEE       LL          LL          OO  O   OO
>  HH      HH  EE          LL          LL          OO O    OO
>  HH      HH  EE          LL          LL          OOO     OO
>  HH      HH  EEEEEEEEEE  LLLLLLLLLL  LLLLLLLLLL  OOOOOOOOOO
>  HH      HH  EEEEEEEEEE  LLLLLLLLLL  LLLLLLLLLL  
 
and "groff -T html" this text becomes

OOOOOOOO<p>&gt; HH HH EEEEEEEEEE LL LL OOOOOOOO <br>
&gt; HH HH EEEEEEEEEE LL LL OOOOOOOOOO <br>
&gt; HH HH EE LL LL OO OOO <br>
&gt; HH HH EE LL LL OO O OO <br>
&gt; HHHHHHHHHH EEEEE LL LL OO O OO <br>
&gt; HHHHHHHHHH EEEEE LL LL OO O OO <br>
&gt; HH HH EE LL LL OO O OO <br>
&gt; HH HH EE LL LL OOO OO <br>
&gt; HH HH EEEEEEEEEE LLLLLLLLLL LLLLLLLLLL OOOOOOOOOO <br>
&gt; HH HH EEEEEEEEEE LLLLLLLLLL LLLLLLLLLL OOOOOOOO</p>

where the text should be in a "<pre>" section or spaces should be retained
with "&nbsp;" replaceing the spaces in such a region.








    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48835>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]