adding example
This commit is contained in:
@@ -24,7 +24,7 @@ Let’s look at a simple example. Here is a sample input file, named example.txt
|
|||||||
And here’s the output produced for that input file for the three different justification modes, for the specified
|
And here’s the output produced for that input file for the three different justification modes, for the specified
|
||||||
text width of 16:
|
text width of 16:
|
||||||
|
|
||||||
flush left
|
**flush left**
|
||||||
```txt
|
```txt
|
||||||
--------------------
|
--------------------
|
||||||
| Here is an |
|
| Here is an |
|
||||||
@@ -33,6 +33,24 @@ flush left
|
|||||||
--------------------
|
--------------------
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**flush right**
|
||||||
|
```txt
|
||||||
|
--------------------
|
||||||
|
| Here is an |
|
||||||
|
| example of text |
|
||||||
|
| justification. |
|
||||||
|
--------------------
|
||||||
|
```
|
||||||
|
|
||||||
|
**full justify**
|
||||||
|
```txt
|
||||||
|
--------------------
|
||||||
|
| Here is an |
|
||||||
|
| example of text |
|
||||||
|
| justification. |
|
||||||
|
--------------------
|
||||||
|
```
|
||||||
|
|
||||||
First note that the output includes a simple ascii art line box drawn around the text, but those characters
|
First note that the output includes a simple ascii art line box drawn around the text, but those characters
|
||||||
do not count towards the specified line width of the text. In other words, each line of final output is actually
|
do not count towards the specified line width of the text. In other words, each line of final output is actually
|
||||||
4 characters longer, in this example, 20 total characters. Notice that the same words appear on each line
|
4 characters longer, in this example, 20 total characters. Notice that the same words appear on each line
|
||||||
|
|||||||
Reference in New Issue
Block a user