changeset 18473:2b01c11197d6 gui-release

Fix contraction of '--' to '-' in Info format of Line Styles (bug #41585) * plot.txi: Can't use @qcode macro for '--' because it doesn't create a verbatim environment like @code. In this case, '--' is replaced by single en-dash in Info format. Instead, use explicit @ifinfo and @verb blocks to create '--' in Info format. * DASPK-opts.in: Add missing escaped quote (\") to documentation. * validateattributes.m: Remove extra ',' typo and end of @qcode instantiation.
author Rik <rik@octave.org>
date Sun, 16 Feb 2014 10:26:49 -0800
parents 044bbf569cd3
children d39fd728ddef
files doc/interpreter/plot.txi liboctave/numeric/DASPK-opts.in scripts/general/validateattributes.m
diffstat 3 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/doc/interpreter/plot.txi	Sat Feb 15 20:19:04 2014 -0800
+++ b/doc/interpreter/plot.txi	Sun Feb 16 10:26:49 2014 -0800
@@ -2643,7 +2643,13 @@
 @item @qcode{"-"}
 Solid line.  [default]
 
-@item @qcode{"--"}
+@c Special handling required to avoid '--' becoming single en-dash in Info
+@ifinfo
+@item @verb{"--"}
+@end ifinfo
+@iftex
+@item @code{"--"}
+@end iftex
 Dashed line.
 
 @item @qcode{":"}
--- a/liboctave/numeric/DASPK-opts.in	Sat Feb 15 20:19:04 2014 -0800
+++ b/liboctave/numeric/DASPK-opts.in	Sun Feb 16 10:26:49 2014 -0800
@@ -212,7 +212,7 @@
 in the equation set.
 
 This option is required by the
-@qcode{compute consistent initial condition\"} and
+@qcode{\"compute consistent initial condition\"} and
 @qcode{\"exclude algebraic variables from error test\"} options.
 
   END_DOC_ITEM
--- a/scripts/general/validateattributes.m	Sat Feb 15 20:19:04 2014 -0800
+++ b/scripts/general/validateattributes.m	Sun Feb 16 10:26:49 2014 -0800
@@ -147,7 +147,7 @@
 ## @item @qcode{"scalar"}
 ## It is a scalar.
 ##
-## @item @qcode{"size",}
+## @item @qcode{"size"}
 ## Its size has length equal to the values of the next in @var{attributes}.
 ## The next value must is an array with the length for each dimension.  To
 ## ignore the check for a certain dimension, the value of @code{NaN} can be