| | 1 | #include <tads.h> |
| | 2 | |
| | 3 | main(args) |
| | 4 | { |
| | 5 | "This is a test of some character-mode tabbing.\b"; |
| | 6 | |
| | 7 | "----------<tab id=one>1-----<tab id=two>2---------------<tab id=three>3"; |
| | 8 | "---<tab id=four>4-----------------<tab id=five>5---------"; |
| | 9 | "--------<tab id=six>6------\n"; |
| | 10 | "<tab to=one>one<tab to=three>three\n"; |
| | 11 | "<tab to=two>two<tab to=four>four\n"; |
| | 12 | "<tab to=one align=center>one-center<tab to=two>two |
| | 13 | <tab to=three align=right>three-right\n"; |
| | 14 | "<tab to=two align=decimal dp='.'>dec.2 |
| | 15 | <tab to=three align=right>three-right\n"; |
| | 16 | |
| | 17 | "<tab align=center>Some text centered in the line\n |
| | 18 | <tab to=two>Two<tab align=center>Centered after that\n |
| | 19 | <tab align=right>Right-aligned text\n |
| | 20 | Text<tab to=two align=right>Two-right<tab align=right>Some |
| | 21 | right-aligned end text\n"; |
| | 22 | } |
| | 23 | |