bug-groff
[Top][All Lists]
Advanced

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

[bug #53314] [PATCH] strip.sed: Keep the protection (and visibility) of


From: G. Branden Robinson
Subject: [bug #53314] [PATCH] strip.sed: Keep the protection (and visibility) of spaces
Date: Mon, 4 Jan 2021 00:40:45 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Follow-up Comment #6, bug #53314 (project groff):

This patch needs to be updated with respect to the following commit to be
considered.  Any future revision should be attached as a diff file to avoid
damage to the literal spaces and tabs in the file.

However, it may not be worth the trouble except as a potential future example
in documentation--mailing list consensus is in favor of dropping the stripping
procedure and I plan to do so at some point after 1.23.0 is released.


commit c4d82acf4de9f1d6e19ef824607f3fd45f0dcf33
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date:   Mon Nov 5 07:00:46 2018 -0500

    tmac/strip.sed: Operate only if given permission.
    
            * tmac/strip.sed: Do nothing whatsoever to any input file that
            lacks a line matching "%beginstrip%".  This implements a
            contract between the macro file writer and the stripper script
            (roff input is not parseable with crude weaponry like regular
            expressions).  In practice, most of the changes performed by the
            script were already in a block enforcing this.  My changes:
              + Stop unconditionally inserting a roff comment noting the
                reader of stripping at line 2.  Instead, replace the line
                matching "%beginstrip%" with this comment if and only if it
                is present.
              + Stop deleting lines containing only the empty request if
                they occur before "%beginstrip%".
              + Tweak the wording of the roff comment.
              + Remove comment within the sed script; see
            <https://lists.gnu.org/archive/html/groff/2017-11/msg00057.html>
                and the sed section of "Limitations of Usual Tools" in the
                GNU Autoconf Manual.
    
            * tmac/e.tmac-u: Add a comment line to visually separate the end
            of the license statement from the comment emplaced by strip.sed.
            This is also consistent with the mdoc macro files.
    
            Invalidates <https://savannah.gnu.org/bugs/index.php?53784>.


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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