Matrix with two rows appears smooshed into a single line
Open
Nobody has claimed this yet.
bug
- Dominant language
- Python
- Stars
- 2.5k
- Forks
- 228
- PR merge metrics
- No merged PRs in 30d
Description
Problem Description
Documentation in the form
r"""
Compute rigid link stiffness matrix.
The stiffness matrix is computed as
$$
K =\begin{bmatrix}
C^T\Gamma C & -C^T\Gamma \\
-\Gamma C & \Gamma \\
\end{bmatrix}
$$.
"""
produces
The matrix rows are all on the same line.
The generated html:
Steps to reproduce the behavior:
- See above.
- Compiled with
pdoc pystran --math -o html.
System Information
pdoc: 15.0.1
Python: 3.13.2
Platform: Windows-11-10.0.22631-SP0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with pdoc pystran --math -o html using the docstring shown, then inspect the generated HTML and rendered matrix. Trace how the displayed LaTeX matrix rows are emitted and confirm the fix by regenerating the page and verifying that the two rows render separately.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100