summaryrefslogtreecommitdiffstats
path: root/doc/groff.html.node/Leading-Space-Traps.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/groff.html.node/Leading-Space-Traps.html')
-rw-r--r--doc/groff.html.node/Leading-Space-Traps.html82
1 files changed, 82 insertions, 0 deletions
diff --git a/doc/groff.html.node/Leading-Space-Traps.html b/doc/groff.html.node/Leading-Space-Traps.html
new file mode 100644
index 0000000..b107793
--- /dev/null
+++ b/doc/groff.html.node/Leading-Space-Traps.html
@@ -0,0 +1,82 @@
+<!DOCTYPE html>
+<html>
+<!-- Created by GNU Texinfo 7.0.3, https://www.gnu.org/software/texinfo/ -->
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<!-- This manual documents GNU troff version 1.23.0.
+
+Copyright © 1994-2023 Free Software Foundation, Inc.
+
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation License, Version 1.3 or
+any later version published by the Free Software Foundation; with no
+Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
+copy of the license is included in the section entitled "GNU Free
+Documentation License". -->
+<title>Leading Space Traps (The GNU Troff Manual)</title>
+
+<meta name="description" content="Leading Space Traps (The GNU Troff Manual)">
+<meta name="keywords" content="Leading Space Traps (The GNU Troff Manual)">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="Generator" content="makeinfo">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+
+<link href="index.html" rel="start" title="Top">
+<link href="Request-Index.html" rel="index" title="Request Index">
+<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
+<link href="Traps.html" rel="up" title="Traps">
+<link href="End_002dof_002dinput-Traps.html" rel="next" title="End-of-input Traps">
+<link href="Blank-Line-Traps.html" rel="prev" title="Blank Line Traps">
+<style type="text/css">
+<!--
+a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
+span.r {font-family: initial; font-weight: normal; font-style: normal}
+span:hover a.copiable-link {visibility: visible}
+strong.def-name {font-family: monospace; font-weight: bold; font-size: larger}
+-->
+</style>
+
+
+</head>
+
+<body lang="en">
+<div class="subsection-level-extent" id="Leading-Space-Traps">
+<div class="nav-panel">
+<p>
+Next: <a href="End_002dof_002dinput-Traps.html" accesskey="n" rel="next">End-of-input Traps</a>, Previous: <a href="Blank-Line-Traps.html" accesskey="p" rel="prev">Blank Line Traps</a>, Up: <a href="Traps.html" accesskey="u" rel="up">Traps</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Request-Index.html" title="Index" rel="index">Index</a>]</p>
+</div>
+<hr>
+<h4 class="subsection" id="Leading-Space-Traps-1">5.28.4 Leading Space Traps</h4>
+<a class="index-entry-id" id="index-leading-space-traps"></a>
+<a class="index-entry-id" id="index-traps_002c-leading-space"></a>
+
+<dl class="first-deffn">
+<dt class="deffn" id="index-_002elsm"><span class="category-def">Request: </span><span><strong class="def-name"><code class="t">.lsm</code></strong> <var class="def-var-arguments">[<span class="r"><i class="slanted">name</i></span>]</var><a class="copiable-link" href='#index-_002elsm'> &para;</a></span></dt>
+<dd><a class="index-entry-id" id="index-lsm"></a>
+</dd><dt class="deffnx def-cmd-deffn" id="index-_005cn_005blsn_005d"><span class="category-def">Register: </span><span><strong class="def-name"><code class="t">\n[lsn]</code></strong><a class="copiable-link" href='#index-_005cn_005blsn_005d'> &para;</a></span></dt>
+<dd><a class="index-entry-id" id="index-lsn"></a>
+</dd><dt class="deffnx def-cmd-deffn" id="index-_005cn_005blss_005d"><span class="category-def">Register: </span><span><strong class="def-name"><code class="t">\n[lss]</code></strong><a class="copiable-link" href='#index-_005cn_005blss_005d'> &para;</a></span></dt>
+<dd><a class="index-entry-id" id="index-lss"></a>
+<a class="index-entry-id" id="index-leading-spaces-macro-_0028lsm_0029"></a>
+<p>Set a leading space trap, calling the macro <var class="var">name</var> when GNU
+<code class="code">troff</code> encounters leading spaces in an input line; the implicit
+line break that normally happens in this case is suppressed. If no
+argument is supplied, the default leading space behavior is
+(re-)established (see <a class="pxref" href="Breaking.html">Breaking</a>).
+</p>
+<p>The count of leading spaces on an input line is stored in register
+<code class="code">lsn</code>, and the amount of corresponding horizontal motion in
+register <code class="code">lss</code>, irrespective of whether a leading space trap is
+set. When it is, the leading spaces are removed from the input line,
+and no motion is produced before calling <var class="var">name</var>.
+</p>
+</dd></dl>
+
+
+</div>
+
+
+
+</body>
+</html>