summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrent s <bts@square-r00t.net>2020-08-23 00:38:53 -0400
committerbrent s <bts@square-r00t.net>2020-08-23 00:38:53 -0400
commit13349d6d996d3037c703c9ead0562b9691545048 (patch)
tree6e00528dcae4a94a387d092835512e0888c35a16
parentb0fba9b441ae36fc88ef6aaa23da30ecf0fb4ab5 (diff)
downloadOpTools-13349d6d996d3037c703c9ead0562b9691545048.tar.xz
don't need to escape backslash
-rw-r--r--ref/ascii/ascii.html6
-rwxr-xr-xref/ascii/tables/_gen.py5
-rw-r--r--ref/ascii/tables/print.adoc2
3 files changed, 8 insertions, 5 deletions
diff --git a/ref/ascii/ascii.html b/ref/ascii/ascii.html
index f7e7f80..f70ea91 100644
--- a/ref/ascii/ascii.html
+++ b/ref/ascii/ascii.html
@@ -443,7 +443,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
<div class="details">
<span id="author" class="author">Brent Saner</span><br>
<span id="email" class="email"><a href="mailto:r00t@square-r00t.net">r00t@square-r00t.net</a></span><br>
-<span id="revdate">Last updated/rendered 2020-08-23 00:03:40 -0400</span>
+<span id="revdate">Last updated/rendered 2020-08-23 00:38:41 -0400</span>
</div>
<div id="toc" class="toc2">
<div id="toctitle">Table of Contents</div>
@@ -1564,7 +1564,7 @@ used on e.g. RS-232).</p>
<td class="tableblock halign-center valign-top"><p class="tableblock">01011100</p></td>
<td class="tableblock halign-center valign-top"><p class="tableblock">&amp;#092;</p></td>
<td class="tableblock halign-center valign-top"><p class="tableblock">N/A</p></td>
-<td class="tableblock halign-center valign-top"><p class="tableblock">\\</p></td>
+<td class="tableblock halign-center valign-top"><p class="tableblock">\</p></td>
<td class="tableblock halign-center valign-top"><p class="tableblock">Backslash</p></td>
</tr>
<tr>
@@ -4194,7 +4194,7 @@ of reference.</p>
<td class="tableblock halign-center valign-top"><p class="tableblock">01011100</p></td>
<td class="tableblock halign-center valign-top"><p class="tableblock">&amp;#092;</p></td>
<td class="tableblock halign-center valign-top"><p class="tableblock">N/A</p></td>
-<td class="tableblock halign-center valign-top"><p class="tableblock">\\</p></td>
+<td class="tableblock halign-center valign-top"><p class="tableblock">\</p></td>
<td class="tableblock halign-center valign-top"><p class="tableblock">Backslash</p></td>
</tr>
<tr>
diff --git a/ref/ascii/tables/_gen.py b/ref/ascii/tables/_gen.py
index ab42c78..6f255c1 100755
--- a/ref/ascii/tables/_gen.py
+++ b/ref/ascii/tables/_gen.py
@@ -7,6 +7,9 @@ import html.entities
unused = (129, 141, 143, 144, 157)
# These are whitespace and delete (control characters unnecessary to put here).
noprint = (32, 127, 160, 173)
+# These need to be escaped in the generated AsciiDoc format.
+# escapechars = ('|', '\\')
+escapechars = ('|', )
tpl = '| {d}\n| {o}\n| {h}\n| {b}\n| {ht}\n| {e}\n| {l}\n| {desc}\n'
@@ -52,7 +55,7 @@ for f, r in charsets.items():
c.encode('ascii')
except UnicodeEncodeError as e:
c = '&#{0:0>3};'.format(n)
- if c in ('|', '\\'):
+ if c in escapechars:
c = '\\{0}'.format(c)
vals['l'] = c
diff --git a/ref/ascii/tables/print.adoc b/ref/ascii/tables/print.adoc
index c1f0ab7..302cb54 100644
--- a/ref/ascii/tables/print.adoc
+++ b/ref/ascii/tables/print.adoc
@@ -544,7 +544,7 @@
| 01011100
| &amp;#092;
| N/A
-| \\
+| \
| Backslash
| 93