You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for line in content.lines().skip_while(|l| !l.starts_with('-')){
105
+
ifletSome(desc) = line.strip_prefix("- "){
106
+
roff.text([roman(desc)]);
107
+
}elseif line.starts_with('`'){
108
+
let cmd = strip_placeholders(line.trim_matches('`'));
109
+
roff.text([bold(cmd)]);
110
+
}elseif line.is_empty(){
111
+
roff.control("PP",[]);
112
+
}
113
+
}
114
+
roff.control("PP",[]);
115
+
roff.text([roman(
116
+
"The examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail.",
"> The examples are provided by the [tldr-pages project](https://tldr.sh) under the [CC BY 4.0 License](https://github.com/tldr-pages/tldr/blob/main/LICENSE.md)."
626
-
)?;
627
-
writeln!(s,">")?;
628
-
writeln!(
629
-
s,
630
-
"> Please note that, as uutils is a work in progress, some examples might fail."
631
-
)?;
651
+
if output_markdown {
652
+
writeln!(
653
+
s,
654
+
"> The examples are provided by the [tldr-pages project](https://tldr.sh) under the [CC BY 4.0 License](https://github.com/tldr-pages/tldr/blob/main/LICENSE.md). Please note that, as uutils is a work in progress, some examples might fail."
655
+
)?;
656
+
}else{
657
+
writeln!(
658
+
s,
659
+
"The examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail."
0 commit comments