summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpooryorick <com.digitalsmarties@pooryorick.com>2023-03-26 22:29:05 (GMT)
committerpooryorick <com.digitalsmarties@pooryorick.com>2023-03-26 22:29:05 (GMT)
commit49b6ecfb4e17876dec5c9f9edad8d5e0a44cb52c (patch)
treeff11724782f0e7623264cd959f1df6f906594603
parent38a87927cf6adb2f3db0ee2a9ac195e4dd7853d4 (diff)
downloadtcl-49b6ecfb4e17876dec5c9f9edad8d5e0a44cb52c.zip
tcl-49b6ecfb4e17876dec5c9f9edad8d5e0a44cb52c.tar.gz
tcl-49b6ecfb4e17876dec5c9f9edad8d5e0a44cb52c.tar.bz2
Fix some formatting errors.
-rw-r--r--doc/encoding.n6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/encoding.n b/doc/encoding.n
index 8ede974..e02f316 100644
--- a/doc/encoding.n
+++ b/doc/encoding.n
@@ -96,7 +96,7 @@ Returns a list of the names of encoding profiles. See \fBPROFILES\fR below.
Set the system encoding to \fIencoding\fR. If \fIencoding\fR is
omitted then the command returns the current system encoding. The
system encoding is used whenever Tcl passes strings to system calls.
-\" Do not put .VS on whole section as that messes up the bullet list alignment
+.\" Do not put .VS on whole section as that messes up the bullet list alignment
.SH PROFILES
.PP
.VS "TCL8.7 TIP656"
@@ -172,7 +172,7 @@ These examples use the utility proc below that prints the Unicode code points
comprising a Tcl string.
.PP
.CS
-proc codepoints {s} {join [lmap c [split $s ""] {
+proc codepoints s {join [lmap c [split $s {}] {
string cat U+ [format %.6X [scan $c %c]]}]
}
.CE
@@ -193,8 +193,8 @@ Example 2: Error handling based on profiles:
.PP
The letter \fBA\fR is Unicode character U+0041 and the byte "\ex80" is invalid
in ASCII encoding.
-.CS
.PP
+.CS
% codepoints [encoding convertfrom -profile tcl8 ascii A\ex80]
U+000041 U+000080
% codepoints [encoding convertfrom -profile replace ascii A\ex80]