bugGNU roff - Bugs: bug #63789, pre-html.cpp: add a space after...

 
 

bug #63789: pre-html.cpp: add a space after "nullptr" in a comment

Submitter:  Bjarni Ingi Gislason <bjarniig>
Submitted:  Sat 11 Feb 2023 09:40:13 AM UTC
   
 
Category:  Preprocessor html Severity:  2 - Minor
Item Group:  Lint Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 25 Feb 2023 02:49:01 AM UTC, comment #1: 


sed 's#0 */\* *nullptr *\*/#nullptr#g'

does the substitution regardless of how much space, including none, is between the 0 and the open-comment sequence, the open-comment and the word "nullptr," and that word and the close-comment.

To be extra paranoid, you could (in GNU sed) add a \b before the 0, to guard against matching the unlikely code snippet "50 /* nullptr */" or some such.

Dave <barx>
Group Member
Sat 11 Feb 2023 09:40:13 AM UTC, original submission:  

Subject: pre-html.cpp: add a space after "nullptr" in a comment

File: src/preproc/html/pre-html.cpp

    if (0 /* nullptr*/ == fp) {

  A space is missing in the comment to make it equal to other comments
of type " /* nullptr */".

  To facilitate global substitution of '0' with 'nullptr'.

Bjarni Ingi Gislason <bjarniig>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by barx (Posted a comment)
  • -email is unavailable- added by gbranden (Updated the item)
  • -email is unavailable- added by bjarniig (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-02-11 gbranden Severity3 - Normal 2 - Minor

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code