Skip to content

Commit

Permalink
docs(manual): Remove blank lines from code blocks where they serve no…
Browse files Browse the repository at this point in the history
… purpose
  • Loading branch information
alerque committed Nov 14, 2024
1 parent 9f760d8 commit c6d73ec
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 13 deletions.
4 changes: 1 addition & 3 deletions documentation/c03-input.sil
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,11 @@ Here are a few more examples of SILE commands:

\begin[type=autodoc:codeblock]{raw}
\eject % A command with no parameters or argument

\font[family=Times,size=10pt] % Parameters, but no argument

\chapter{Introducing SILE} % Argument but no parameters

\font[family=Times,size=10pt]{Hi there!} % Parameters and argument
\end{raw}%

\subsection{Environments}

Commands like \autodoc:command{\chapter} (to start a chapter) and \autodoc:command{\em} (to emphasize text) are normally used to enclose a relatively small piece of text—a few lines at most.
Expand Down
2 changes: 0 additions & 2 deletions documentation/c06-macroscommands.sil
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@ command.” So if we want to a command which makes things red, we can say:

\begin[type=autodoc:codeblock]{raw}
\define[command=red]{\color[color=red]{\process}}


Making things red is a \red{silly} way to emphasize text.
\end{raw}

Expand Down
4 changes: 0 additions & 4 deletions documentation/c07-settings.sil
Original file line number Diff line number Diff line change
Expand Up @@ -365,13 +365,9 @@ Harfbuzz, run \code{sile --debug=versions} on any file:

\begin[type=autodoc:codeblock]{raw}
$ sile --debug=versions hello.sil

...

Harfbuzz version: 2.4.0

Shapers enabled: graphite2, ot, coretext, coretext_aat, fallback

...
\end{raw}

Expand Down
2 changes: 1 addition & 1 deletion documentation/c08-language.sil
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ The default is \code{left}.
\font[family=Noto Sans Ethiopic]{ሰላም፡ልዑል}

\\set[parameter=languages.am.justification,value=centered]
\font[family=Noto Sans Ethiopic]{ሰላም፡ልዑል}
\font[family=Noto Sans Ethiopic]{ሰላም፡ልዑል}
\end{autodoc:codeblock}

\font[family=Noto Sans Ethiopic,language=am]{ሰላም፡ልዑል}
Expand Down
2 changes: 1 addition & 1 deletion documentation/c13-tricks.sil
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ Sometimes it’s useful for you to try out Lua code within the SILE environment;
If you call SILE with no input file names, it enters the REPL:

\begin{autodoc:codeblock}
\sileversion
\sileversion
> \em{l = SILE.types.length("22mm")}
> \em{l.length}
22mm
Expand Down
2 changes: 0 additions & 2 deletions packages/converters/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ We do this by registering a converter with the \autodoc:command{\converters:regi
\begin[type=autodoc:codeblock]{raw}
\use[module=packages.converters]
\converters:register[from=.gif,to=.jpg,command=convert $SOURCE $TARGET]
\end{raw}
Expand All @@ -140,7 +139,6 @@ This trick also works for text files:
\begin[type=autodoc:codeblock]{raw}
\converters:register[from=.md, to=.sil, command=pandoc -o $TARGET $SOURCE]
\include[src=document.md]
\end{raw}
\end{document}
Expand Down

0 comments on commit c6d73ec

Please sign in to comment.