changeset 32980:69f1135e44d2 stable

doc: Remove trailing comma from links in property & keyword lists (bug #59737) * doc/interpreter/grammar.txi: Add nonrendering @: after ref links in horizontal lists to suppress trailing comma. * doc/interpreter/genpropdoc.m (printdoc): Same as above. Change Category title to a subsubheading.
author Nicholas R. Jankowski <jankowski.nicholas@gmail.com>
date Thu, 08 Feb 2024 07:21:05 -0500
parents e1351a7cdc4d
children e31d283a2701 90b35ada14b2
files doc/interpreter/genpropdoc.m doc/interpreter/grammar.txi
diffstat 2 files changed, 51 insertions(+), 51 deletions(-) [+]
line wrap: on
line diff
--- a/doc/interpreter/genpropdoc.m	Wed Feb 07 20:58:39 2024 -0800
+++ b/doc/interpreter/genpropdoc.m	Thu Feb 08 07:21:05 2024 -0500
@@ -3523,10 +3523,10 @@
   categories = [categories(!idx); categories(idx)];
 
   ## Add links to categories at the top
-  str = sprintf ("%s\n\nCategories:\n\n", str);
+  str = sprintf ("%s\n\n@subsubheading Categories:\n\n", str);
 
   for ii = 1:numel (categories);
-    str = sprintf ("%s@ref{XREF%scategory%s, , @w{%s}} ", str, objname, strrep (categories{ii}, " ", ""), categories{ii});
+    str = sprintf ("%s@ref{XREF%scategory%s, , @w{%s}}@: ", str, objname, strrep (categories{ii}, " ", ""), categories{ii});
     if (ii < numel (categories))
       str = sprintf ("%s| ", str);
     endif
--- a/doc/interpreter/grammar.txi	Wed Feb 07 20:58:39 2024 -0800
+++ b/doc/interpreter/grammar.txi	Thu Feb 08 07:21:05 2024 -0500
@@ -38,58 +38,58 @@
 
 @subsubheading Categories:
 
-@ref{XREFkwcategoryUtilityFunctions,,@w{Utility Functions}} |
-@ref{XREFkwcategoryVariableDeclaration,,@w{Variable Declaration}} |
-@ref{XREFkwcategoryFunctionDefinition,,@w{Function Definition}} |
-@ref{XREFkwcategoryControlStructures,,@w{Control Statements}} |
-@ref{XREFkwcategoryIteratingStructures,,@w{Iterating Structures}} |
-@ref{XREFkwcategoryClassdefStructures,,@w{Classdef Structures}} |
-@ref{XREFkwcategoryExecutionEnvironment,,@w{Execution Environment}}
+@ref{XREFkwcategoryUtilityFunctions,,@w{Utility Functions}}@: |
+@ref{XREFkwcategoryVariableDeclaration,,@w{Variable Declaration}}@: |
+@ref{XREFkwcategoryFunctionDefinition,,@w{Function Definition}}@: |
+@ref{XREFkwcategoryControlStructures,,@w{Control Statements}}@: |
+@ref{XREFkwcategoryIteratingStructures,,@w{Iterating Structures}}@: |
+@ref{XREFkwcategoryClassdefStructures,,@w{Classdef Structures}}@: |
+@ref{XREFkwcategoryExecutionEnvironment,,@w{Execution Environment}}@:
 
 @subsubheading Alphabetical listing:
 
-@ref{XREF__FILE__,,__FILE__} |
-@ref{XREF__LINE__,,__LINE__} |
-@ref{XREFbreak,,break} |
-@ref{XREFcase,,case} |
-@ref{XREFcatch,,catch} |
-@ref{XREFclassdef,,classdef} |
-@ref{XREFcontinue,,continue} |
-@ref{XREFdo,,do} |
-@ref{XREFelse,,else} |
-@ref{XREFelseif,,elseif} |
-@ref{XREFend,,end} |
-@ref{XREFend_try_catch,,end_try_catch} |
-@ref{XREFend_unwind_protect,,end_unwind_protect} |
-@ref{XREFendclassdef,,endclassdef} |
-@ref{XREFendenumeration,,endenumeration} |
-@ref{XREFendevents,,endevents} |
-@ref{XREFendfor,,endfor} |
-@ref{XREFendfunction,,endfunction} |
-@ref{XREFendif,,endif} |
-@ref{XREFendmethods,,endmethods} |
-@ref{XREFendparfor,,endparfor} |
-@ref{XREFendproperties,,endproperties} |
-@ref{XREFendswitch,,endswitch} |
-@ref{XREFendwhile,,endwhile} |
-@ref{XREFenumeration,,endenumeration} |
-@ref{XREFevents,,events} |
-@ref{XREFfor,,for} |
-@ref{XREFfunction,,function} |
-@ref{XREFglobal,,global} |
-@ref{XREFif,,if} |
-@ref{XREFkwpropertymethods,,methods} |
-@ref{XREFotherwise,,otherwise} |
-@ref{XREFparfor,,parfor} |
-@ref{XREFpersistent,,persistent} |
-@ref{XREFkwpropertyproperties,,properties} |
-@ref{XREFreturn,,return} |
-@ref{XREFswitch,,switch} |
-@ref{XREFtry,,try} |
-@ref{XREFuntil,,until} |
-@ref{XREFunwind_protect,,unwind_protect} |
-@ref{XREFunwind_protect_cleanup,,unwind_protect_cleanup} |
-@ref{XREFwhile,,while}
+@ref{XREF__FILE__,,__FILE__}@: |
+@ref{XREF__LINE__,,__LINE__}@: |
+@ref{XREFbreak,,break}@: |
+@ref{XREFcase,,case}@: |
+@ref{XREFcatch,,catch}@: |
+@ref{XREFclassdef,,classdef}@: |
+@ref{XREFcontinue,,continue}@: |
+@ref{XREFdo,,do}@: |
+@ref{XREFelse,,else}@: |
+@ref{XREFelseif,,elseif}@: |
+@ref{XREFend,,end}@: |
+@ref{XREFend_try_catch,,end_try_catch}@: |
+@ref{XREFend_unwind_protect,,end_unwind_protect}@: |
+@ref{XREFendclassdef,,endclassdef}@: |
+@ref{XREFendenumeration,,endenumeration}@: |
+@ref{XREFendevents,,endevents}@: |
+@ref{XREFendfor,,endfor}@: |
+@ref{XREFendfunction,,endfunction}@: |
+@ref{XREFendif,,endif}@: |
+@ref{XREFendmethods,,endmethods}@: |
+@ref{XREFendparfor,,endparfor}@: |
+@ref{XREFendproperties,,endproperties}@: |
+@ref{XREFendswitch,,endswitch}@: |
+@ref{XREFendwhile,,endwhile}@: |
+@ref{XREFenumeration,,endenumeration}@: |
+@ref{XREFevents,,events}@: |
+@ref{XREFfor,,for}@: |
+@ref{XREFfunction,,function}@: |
+@ref{XREFglobal,,global}@: |
+@ref{XREFif,,if}@: |
+@ref{XREFkwpropertymethods,,methods}@: |
+@ref{XREFotherwise,,otherwise}@: |
+@ref{XREFparfor,,parfor}@: |
+@ref{XREFpersistent,,persistent}@: |
+@ref{XREFkwpropertyproperties,,properties}@: |
+@ref{XREFreturn,,return}@: |
+@ref{XREFswitch,,switch}@: |
+@ref{XREFtry,,try}@: |
+@ref{XREFuntil,,until}@: |
+@ref{XREFunwind_protect,,unwind_protect}@: |
+@ref{XREFunwind_protect_cleanup,,unwind_protect_cleanup}@: |
+@ref{XREFwhile,,while}@:
 
 @subheading Utility Functions:
 @anchor{XREFkwcategoryUtilityFunctions}