(37 lines)
1 '\" t2 .\" Copyright (c) 2025 Bruce Hill3 .\" All rights reserved.4 .\"5 .TH Text.quoted 3 2025-11-29 "Tomo man-pages"6 .SH NAME7 Text.quoted \- add quotation marks and escapes8 .SH LIBRARY9 Tomo Standard Library10 .SH SYNOPSIS11 .nf12 .BI Text.quoted\ :\ func(text:\ Text,\ color:\ Bool\ =\ no,\ quotation_mark:\ Text\ =\ `"`\ ->\ Text)13 .fi14 .SH DESCRIPTION15 Formats the text with quotation marks and escapes.18 .SH ARGUMENTS20 .TS21 allbox;22 lb lb lbx lb23 l l l l.24 Name Type Description Default25 text Text The text to be quoted. -26 color Bool Whether to add color formatting. no27 quotation_mark Text The quotation mark to use. `"`28 .TE29 .SH RETURN30 The text formatted as a quoted text.32 .SH EXAMPLES33 .EX34 assert "one\[rs]ntwo".quoted() == "\[rs]"one\[rs]\[rs]ntwo\[rs]""35 .EE36 .SH SEE ALSO37 .BR Tomo-Text (3)