summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-10-19 14:42:29 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-10-19 14:42:29 -0700
commit7065309739ef398af07e470469f1ae6f0580200c (patch)
treea8d6e0e99b14899193014a87e80f013606a0d504 /doc
parent31420e76d1e333825df39964888089181ccf8129 (diff)
downloadnasm-7065309739ef398af07e470469f1ae6f0580200c.tar.gz
nasm-7065309739ef398af07e470469f1ae6f0580200c.tar.bz2
nasm-7065309739ef398af07e470469f1ae6f0580200c.zip
Formatting: kill off "stealth whitespace"
"Stealth whitespace" makes it harder to read diffs, and just generally cause unwanted weirdness. Do a source-wide pass to get rid of it.
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/genps.pl2
-rw-r--r--doc/rdsrc.pl21
2 files changed, 11 insertions, 12 deletions
diff --git a/doc/genps.pl b/doc/genps.pl
index c80a1b2..5517d84 100755
--- a/doc/genps.pl
+++ b/doc/genps.pl
@@ -561,7 +561,7 @@ for ( $i = 0 ; $i < $npara ; $i++ ) {
push(@tocptypes, 'toc0'.' :'.$sech.':'.$chap.' '.$secn.':');
unshift(@{$paras[$i]},
- [-5, $xref], [0,$chap.' '.$secn.':'], [0, ' ']);
+ [-5, $xref], [0,$chap.' '.$secn.':'], [0, ' ']);
} elsif ( $ptype eq 'head' || $ptype eq 'subh' ) {
unless ( $xtype =~ /^\S+ (\S+) :(.*)$/ ) {
die "Bad para";
diff --git a/doc/rdsrc.pl b/doc/rdsrc.pl
index 7775d43..1bf397e 100644
--- a/doc/rdsrc.pl
+++ b/doc/rdsrc.pl
@@ -9,24 +9,24 @@
# Source-form features:
# ---------------------
-#
+#
# Bullet \b
# Bullets the paragraph. Rest of paragraph is indented to cope. In
# HTML, consecutive groups of bulleted paragraphs become unordered
# lists.
-#
+#
# Emphasis \e{foobar}
# produces `_foobar_' in text and italics in HTML, PS, RTF
-#
+#
# Inline code \c{foobar}
# produces ``foobar'' in text, and fixed-pitch font in HTML, PS, RTF
-#
+#
# Display code
# \c line one
# \c line two
# produces fixed-pitch font where appropriate, and doesn't break
# pages except sufficiently far into the middle of a display.
-#
+#
# Chapter, header and subheader
# \C{intro} Introduction
# \H{whatsnasm} What is NASM?
@@ -40,17 +40,17 @@
# Expands to `Chapter 1', `Section 1.1', `Section 1.1.1'. \K has an
# initial capital whereas \k doesn't. In HTML, will produce
# hyperlinks.
-#
+#
# Web link \W{http://foobar/}{text} or \W{mailto:me@here}\c{me@here}
# the \W prefix is ignored except in HTML; in HTML the last part
# becomes a hyperlink to the first part.
-#
+#
# Literals \{ \} \\
# In case it's necessary, they expand to the real versions.
-#
+#
# Nonbreaking hyphen \-
# Need more be said?
-#
+#
# Source comment \#
# Causes everything after it on the line to be ignored by the
# source-form processor.
@@ -458,7 +458,7 @@ sub fixup_xrefs {
if ($$pname[$i] =~ /^k/) {
$k = $$pname[$i];
$caps = ($k =~ /^kK/);
- $k = substr($k,2);
+ $k = substr($k,2);
$repl = $refs{$k};
die "undefined keyword `$k'\n" unless $repl;
substr($repl,0,1) =~ tr/a-z/A-Z/ if $caps;
@@ -1417,4 +1417,3 @@ sub write_dip {
}
close(PARAS);
}
-