1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170
|
<!DOCTYPE html>
<html lang="en">
<head>
<title>ok_longcode_indentation</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="StyleSheet" type="text/css" href="pasdoc.css">
</head>
<body>
<div class="container"><div class="navigation">
<ul><li><a href="AllUnits.html">Units</a></li><li><a href="ClassHierarchy.html">Class Hierarchy</a></li><li><a href="AllClasses.html">Classes, Interfaces, Objects and Records</a></li><li><a href="AllTypes.html">Types</a></li><li><a href="AllVariables.html">Variables</a></li><li><a href="AllConstants.html">Constants</a></li><li><a href="AllFunctions.html">Functions and Procedures</a></li><li><a href="AllIdentifiers.html">Identifiers</a></li></ul></div><div class="content">
<h1 class="unit">Unit ok_longcode_indentation</h1>
<div class="sections">
<div class="one_section"><a class="section" href="#PasDoc-Description">Description</a></div><div class="one_section">Uses</div><div class="one_section">Classes, Interfaces, Objects and Records</div><div class="one_section"><a class="section" href="#PasDoc-FuncsProcs">Functions and Procedures</a></div><div class="one_section">Types</div><div class="one_section">Constants</div><div class="one_section">Variables</div></div>
<span id="PasDoc-Description"></span><h2 class="description">Description</h2>
<span id="PasDoc-Uses"></span><h2 class="overview">Overview</h2>
<span id="PasDoc-FuncsProcs"></span><h3 class="summary">Functions and Procedures</h3>
<table class="summary wide_list">
<tr class="list">
<td class="itemcode"><code>procedure <strong><a href="ok_longcode_indentation.html#Foo1">Foo1</a></strong>;</code></td>
</tr>
<tr class="list2">
<td class="itemcode"><code>procedure <strong><a href="ok_longcode_indentation.html#Foo2">Foo2</a></strong>;</code></td>
</tr>
<tr class="list">
<td class="itemcode"><code>procedure <strong><a href="ok_longcode_indentation.html#Foo3">Foo3</a></strong>;</code></td>
</tr>
<tr class="list2">
<td class="itemcode"><code>procedure <strong><a href="ok_longcode_indentation.html#Foo4">Foo4</a></strong>;</code></td>
</tr>
<tr class="list">
<td class="itemcode"><code>procedure <strong><a href="ok_longcode_indentation.html#Foo5">Foo5</a></strong>;</code></td>
</tr>
<tr class="list2">
<td class="itemcode"><code>procedure <strong><a href="ok_longcode_indentation.html#Foo6">Foo6</a></strong>;</code></td>
</tr>
<tr class="list">
<td class="itemcode"><code>procedure <strong><a href="ok_longcode_indentation.html#Foo7">Foo7</a></strong>;</code></td>
</tr>
</table>
<h2 class="description">Description</h2>
<h3 class="detail">Functions and Procedures</h3>
<table class="detail wide_list">
<tr class="list">
<td class="itemcode"><span id="Foo1"></span><code>procedure <strong>Foo1</strong>;</code></td>
</tr>
<tr><td colspan="1">
<p>
Should cut nothing:
<p></p>
<pre class="longcode">one
two
three</pre>
<p></p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="itemcode"><span id="Foo2"></span><code>procedure <strong>Foo2</strong>;</code></td>
</tr>
<tr><td colspan="1">
<p>
Should cut 4 spaces:
<p></p>
<pre class="longcode">
one
two
three</pre>
<p></p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="itemcode"><span id="Foo3"></span><code>procedure <strong>Foo3</strong>;</code></td>
</tr>
<tr><td colspan="1">
<p>
Should cut 2 spaces:
<p></p>
<pre class="longcode">
one
two
three</pre>
<p></p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="itemcode"><span id="Foo4"></span><code>procedure <strong>Foo4</strong>;</code></td>
</tr>
<tr><td colspan="1">
<p>
Should cut nothing (there's a tab here):
<p></p>
<pre class="longcode">
one
two
three</pre>
<p></p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="itemcode"><span id="Foo5"></span><code>procedure <strong>Foo5</strong>;</code></td>
</tr>
<tr><td colspan="1">
<p>
Should cut tab + 2 spaces:
<p></p>
<pre class="longcode">
one
two
three</pre>
<p></p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="itemcode"><span id="Foo6"></span><code>procedure <strong>Foo6</strong>;</code></td>
</tr>
<tr><td colspan="1">
<p>
Should cut 4 spaces (there's trailing whitespace in 1st lines here, that should be ignored):
<p></p>
<pre class="longcode">
one</pre>
<p></p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="itemcode"><span id="Foo7"></span><code>procedure <strong>Foo7</strong>;</code></td>
</tr>
<tr><td colspan="1">
<p>
Should cut 4 spaces (empty line doesn't shorten IndentationPrefix):
<p></p>
<pre class="longcode">
<span class="pascal_keyword">if</span> something <span class="pascal_keyword">then</span>
<span class="pascal_keyword">begin</span>
<span class="pascal_comment">// empty line below</span>
<span class="pascal_keyword">end</span>;</pre>
<p></p>
</td></tr>
</table>
</div></div></body></html>
|