Skip to content

Commit 4f1521c

Browse files
authored
remove '<' characters from log messages (#1005)
1 parent ccf4dbc commit 4f1521c

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

pretext/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def support() -> None:
267267
for exec_name in project.get_executables().model_dump():
268268
if utils.check_executable(exec_name) is None:
269269
log.warning(
270-
f"Unable to locate the command for <{exec_name}> on your system."
270+
f"Unable to locate the command for `{exec_name}` on your system."
271271
)
272272
else:
273273
log.info("No project.ptx found.")
@@ -429,7 +429,7 @@ def init(refresh: bool, files: List[str], system: bool) -> None:
429429
if project_path is None:
430430
log.info("Success! Open project.ptx to edit your project manifest.")
431431
log.info(
432-
"Edit your <target/>s to point to the location of your PreTeXt source files."
432+
"Edit your `target` elements to point to the location of your PreTeXt source files."
433433
)
434434
else:
435435
log.info(

pretext/project/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def post_validate(self) -> None:
360360
if isinstance(d_list, list):
361361
if len(d_list) != 1:
362362
raise ValueError(
363-
"Only one <document-id> is allowed in a PreTeXt document."
363+
"Only one `document-id` tag is allowed in a PreTeXt document."
364364
)
365365
# NB as of 2025-04-08, we are no longer setting the output directory automatically for
366366
# Runestone targets. This must be managed by the project.ptx file or by a client script.
@@ -374,7 +374,7 @@ def post_validate(self) -> None:
374374
# )
375375
else:
376376
raise ValueError(
377-
"The <document-id> must be defined for the Runestone format."
377+
"The `document-id` tag must be defined for the Runestone format."
378378
)
379379

380380
def source_abspath(self) -> Path:
@@ -704,7 +704,7 @@ def build(
704704
log.warning(
705705
"You specified a publication file via a stringparam. "
706706
+ "This is ignored in favor of the publication file given by the "
707-
+ "<publication> element in the project manifest."
707+
+ "`publication` element in the project manifest."
708708
)
709709

710710
log.info(f"Preparing to build into {self.output_dir_abspath()}.")
@@ -1611,7 +1611,7 @@ def stage_deployment(self) -> None:
16111611
"Configurations are subject to change from version-to-version without notice."
16121612
)
16131613
log.warning(
1614-
"Discussion: <https://github.com/PreTeXtBook/pretext-cli/discussions/766>"
1614+
"Discussion: https://github.com/PreTeXtBook/pretext-cli/discussions/766"
16151615
)
16161616
with tempfile.TemporaryDirectory(prefix="ptxcli_") as tmp_dir_str:
16171617
log.info(f"Staging generated site at `{self.stage_abspath()}`.")

pretext/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def xml_syntax_is_valid(xmlfile: Path, root_tag: str = "pretext") -> bool:
185185
log.debug("XML syntax appears well formed.")
186186
if source_xml.getroot().tag != root_tag:
187187
log.error(
188-
f'The file {xmlfile} does not have "<{root_tag}>" as its root element. Did you use a subfile as your source? Check the project manifest (project.ptx).'
188+
f"The file {xmlfile} does not have `{root_tag}` element as its root element. Did you use a subfile as your source? Check the project manifest (project.ptx)."
189189
)
190190
return False
191191
# check for file IO error

0 commit comments

Comments
 (0)