Skip to content

Commit

Permalink
use "\n" for format strings in man pages
Browse files Browse the repository at this point in the history
  • Loading branch information
philshafer committed Aug 26, 2020
1 parent 52da879 commit f368149
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libxo/xo_open_list.3
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ close each instance of the list:

for (ip = list; ip->i_title; ip++) {
xo_open_instance("item");
xo_emit("{L:Item} '{:name/%s}':\n", ip->i_title);
xo_emit("{L:Item} '{:name/%s}':\\n", ip->i_title);
xo_close_instance("item");
}

Expand All @@ -91,7 +91,7 @@ generation of XML and JSON data.
xo_open_list("user");
for (i = 0; i < num_users; i++) {
xo_open_instance("user");
xo_emit("{k:name}:{:uid/%u}:{:gid/%u}:{:home}\n",
xo_emit("{k:name}:{:uid/%u}:{:gid/%u}:{:home}\\n",
pw[i].pw_name, pw[i].pw_uid,
pw[i].pw_gid, pw[i].pw_dir);
xo_close_instance("user");
Expand Down Expand Up @@ -138,7 +138,7 @@ To emit a leaf list, call the
function using the ""l"" modifier:
.Bd -literal -offset indent -compact
for (ip = list; ip->i_title; ip++) {
xo_emit("{Lwc:Item}{l:item}\n", ip->i_title);
xo_emit("{Lwc:Item}{l:item}\\n", ip->i_title);
}
.Ed
.Pp
Expand Down

0 comments on commit f368149

Please sign in to comment.