File: entity_encoding_test.roff

package info (click to toggle)
ruby-ronn 0.10.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 764 kB
  • sloc: ruby: 1,587; sh: 22; makefile: 9
file content (51 lines) | stat: -rw-r--r-- 878 bytes parent folder | download | duplicates (2)
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
.TH "HELLO" "1" "January 1979" ""
.SH "NAME"
\fBhello\fR \- hello world
.P
Your output <i>might</i> look like this:
.IP "" 4
.nf
* Chris
*
* &lt;b&gt;GitHub&lt;/b&gt;
* <b>GitHub</b>
.fi
.IP "" 0
.P
Here's some special entities:
.IP "\(bu" 4
&bull; \(bu
.IP "\(bu" 4
&nbsp; \~
.IP "\(bu" 4
&copy; \(co
.IP "\(bu" 4
&rdquo; \(rs
.IP "\(bu" 4
&mdash; \(em
.IP "\(bu" 4
&reg; \(rg
.IP "\(bu" 4
&sect; \(sc
.IP "\(bu" 4
&ge; \(>=
.IP "\(bu" 4
&le; \(<=
.IP "\(bu" 4
&ne; \(!=
.IP "\(bu" 4
&equiv; \(==
.IP "" 0
.P
Here's a line that uses non\-breaking spaces to force the last\~few\~words\~to\~wrap\~together\.
.P
And stuff like this:
.P
git bulk [\-g] ([\-a]|[\-w
.br
git bulk \-\-addworkspace
.br
git bulk \-\-removeworkspace <ws\-name>
.br
.P
Should have the \fB&lt;\fR/\fB&gt;\fR entities stay as \fB&lt;\fR/\fB&gt;\fR in HTML, but be turned into literal brackets in the ROFF\.