Skip to content

Suppress ValueError in apply_source_workaround#11092

Merged
AA-Turner merged 3 commits intosphinx-doc:6.1.xfrom
AA-Turner:node-source
Jan 5, 2023
Merged

Suppress ValueError in apply_source_workaround#11092
AA-Turner merged 3 commits intosphinx-doc:6.1.xfrom
AA-Turner:node-source

Conversation

@AA-Turner
Copy link
Copy Markdown
Member

cc @gaborbernat

Does this fix your issue?

A

Comment thread sphinx/util/nodes.py

# workaround: literal_block under bullet list (#4913)
if isinstance(node, nodes.literal_block) and node.source is None:
node.source = get_node_source(node)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does 👍

@AA-Turner AA-Turner changed the base branch from master to 6.1.x January 5, 2023 16:44
@AA-Turner AA-Turner merged commit 476c115 into sphinx-doc:6.1.x Jan 5, 2023
@AA-Turner AA-Turner deleted the node-source branch January 5, 2023 16:56
@martinvonk martinvonk mentioned this pull request Jan 5, 2023
4 tasks
@gaborbernat
Copy link
Copy Markdown
Contributor

Thanks!

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Feb 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants