From 5cd6da0ae4729d3e2eecb054050772199ba33ba3 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Wed, 17 Sep 2008 11:08:59 +0000 Subject: [PATCH] Fixed bad '\' escape sequences (removed "unknown command" warnings). And yes, I added some tags again, because e.g. "@." wouldn't be very well readable in a proportional font (FL_Browser.H). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6279 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Browser.H | 42 ++++++++++++++++++++-------------------- FL/Fl_Input.H | 6 +++--- FL/Fl_Output.H | 4 ++-- src/Fl_File_Chooser2.cxx | 2 +- 4 files changed, 27 insertions(+), 27 deletions(-) diff --git a/FL/Fl_Browser.H b/FL/Fl_Browser.H index e379e257e..8f0d6e10a 100644 --- a/FL/Fl_Browser.H +++ b/FL/Fl_Browser.H @@ -152,32 +152,32 @@ public: /** The first form gets the current format code prefix character, which by - default is @. A string of formatting codes at the start of + default is '\@'. A string of formatting codes at the start of each column are stripped off and used to modify how the rest of the line is printed: - Notice that the @. command can be used to reliably + Notice that the '\@.' command can be used to reliably terminate the parsing. To print a random string in a random color, use - sprintf("@C%d@.%s", color, string) and it will work even if the + sprintf("\@C%d\@.%s", color, string) and it will work even if the string starts with a digit or has the format character in it.

The second form sets the current prefix to c. Set the prefix to 0 to disable formatting. @@ -187,14 +187,14 @@ public: void format_char(char c) {format_char_ = c;} /** The first form gets the current column separator character. By default - this is '\t' (tab). + this is '\\t' (tab).

The second form sets the column separator to c. This will only have an effect if you also set column_widths(). */ char column_char() const {return column_char_;} /** The first form gets the current column separator character. By default - this is '\t' (tab). + this is '\\t' (tab).

The second form sets the column separator to c. This will only have an effect if you also set column_widths(). */ diff --git a/FL/Fl_Input.H b/FL/Fl_Input.H index f866f3b44..397f118d8 100644 --- a/FL/Fl_Input.H +++ b/FL/Fl_Input.H @@ -38,7 +38,7 @@ of text and lets the user edit it. Normally it is drawn with an inset box and a white background. The text may contain any characters (even 0), and will correctly display anything, using - ^X notation for unprintable control characters and \nnn notation + ^X notation for unprintable control characters and \\nnn notation for unprintable characters with the high bit set. It assumes the font can draw any characters in the ISO-8859-1 character set.

@@ -67,8 +67,8 @@ or deletes the selected region. ^E or EndGo to the end of line. ^F or RightMove right - ^KDelete to the end of line (next \n character) - or deletes a single \n character. These deletions are all concatenated + ^KDelete to the end of line (next \\n character) + or deletes a single \\n character. These deletions are all concatenated into the clipboard. ^N or DownMove down (for Fl_Multiline_Input only, otherwise it moves to the next input field). diff --git a/FL/Fl_Output.H b/FL/Fl_Output.H index 15e3c4c85..b9ea12032 100644 --- a/FL/Fl_Output.H +++ b/FL/Fl_Output.H @@ -42,9 +42,9 @@

There is a single subclass, Fl_Multiline_Output, which allows you to display multiple lines of text.

-

The text may contain any characters except \0, and will correctly +

The text may contain any characters except \\0, and will correctly display anything, using ^X notation for unprintable control characters - and \nnn notation for unprintable characters with the high bit set. It + and \\nnn notation for unprintable characters with the high bit set. It assumes the font can draw any characters in the ISO-Latin1 character set. */ diff --git a/src/Fl_File_Chooser2.cxx b/src/Fl_File_Chooser2.cxx index be0c8ebd4..7bf9b6305 100644 --- a/src/Fl_File_Chooser2.cxx +++ b/src/Fl_File_Chooser2.cxx @@ -114,7 +114,7 @@

The pattern argument can be a NULL string or "*" to list all files, or it can be a series of descriptions and filter strings separated by tab - characters (\t). The format of filters is either + characters (\\t). The format of filters is either "Description text (patterns)" or just "patterns". A file chooser that provides filters for HTML and image files might look like: