Skip to content

Commit

Permalink
eclass-to-manpage.awk: Escape apostrophe at beginning of line
Browse files Browse the repository at this point in the history
Bug: https://bugs.gentoo.org/420153#c12
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
  • Loading branch information
ulm committed Jan 3, 2021
1 parent 37e6708 commit 61979ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eclass-to-manpage.awk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/awk -f
# Copyright 1999-2020 Gentoo Authors
# Copyright 2007-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# This awk converts the comment documentation found in eclasses
Expand Down Expand Up @@ -121,8 +121,8 @@ function eat_paragraph() {

sub(/^#[[:space:]]?/, "", $0)

# Escape . at start of line #420153
if ($0 ~ /^[.]/)
# Escape . and ' at start of line #420153
if ($0 ~ /^[.']/)
$0 = "\\&" $0

# Translate @CODE into .nf/.fi pair
Expand Down

0 comments on commit 61979ff

Please sign in to comment.