bug-groff
[Top][All Lists]
Advanced

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

[bug #60657] with mm macros, refer fills undefined fields with value of


From: anonyme
Subject: [bug #60657] with mm macros, refer fills undefined fields with value of previous entries.
Date: Sat, 22 May 2021 13:44:35 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0

URL:
  <https://savannah.gnu.org/bugs/?60657>

                 Summary: with mm macros, refer fills undefined fields with
value of previous entries. 
                 Project: GNU troff
            Submitted by: None
            Submitted on: sam. 22 mai 2021 17:44:34 UTC
                Category: Preprocessor refer
                Severity: 3 - Normal
              Item Group: Incorrect behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

If we compile refer -e -p test.ref testref2.mm |groff -mm -Tpdf >
testref_mm.pdf, if a bibligraphic entry has an undefined field 
(say %V) the value of the field is replaced with the value of the last entry
where the field was defined instead of being replaced by an empty string. 

For instance in the compiled pdf file, entry 14 has the volume number of entry
13 and the same comment. This is because the entry 13 defines 
%V 257
%S Rapport - CEA
%O  Pr\*'esidence du Conseil. Commissariat \*`a l'\*'energie atomique. Rapport
C
.E.A. n° 257 Extract from "the Physical review". Vol. 92. N° 5, December
1953
but entry 14 leaves those fields empty. The value of the field %O
is repeated until the entry 17 that redefines %O. 
Similarly, entry 18 defines 
%O  Soci\*'et\*'e des sciences physiques et naturelles de Bordeaux. S\*'eance
du 4 mars 1897
and that comment gets repeated until entry 22 that redefines %O. 

This behavior only appears with -mm macros. With -ms,-me,-mom the 
when %O,%V or %S are empty, the previous values don't get printed. 

I could not find any documentation indicating that refer is incompatible with
the -mm macros or that refer needs particular options to produce valid output
for troff -mm, so I assume this is a bug. 



 



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: sam. 22 mai 2021 17:44:34 UTC  Name: test.ref  Size: 37kio   By: None
Uncertain if it is a bug of refer or a feature of the mm macros
<http://savannah.gnu.org/bugs/download.php?file_id=51459>
-------------------------------------------------------
Date: sam. 22 mai 2021 17:44:34 UTC  Name: testref2.mm  Size: 64o   By: None
Uncertain if it is a bug of refer or a feature of the mm macros
<http://savannah.gnu.org/bugs/download.php?file_id=51460>
-------------------------------------------------------
Date: sam. 22 mai 2021 17:44:34 UTC  Name: testref_mm.pdf  Size: 73kio   By:
None
Uncertain if it is a bug of refer or a feature of the mm macros
<http://savannah.gnu.org/bugs/download.php?file_id=51461>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60657>

_______________________________________________
  Message posté via Savannah
  https://savannah.gnu.org/




reply via email to

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