New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Whitespace in Lowfat #22
Comments
Can you describe the issue a little more specifically? Do you mean you would like every attribute on its own line, regardless of line length? |
This probably happened because of me. The Python library I use (lxml) puts all attributes on the same line as the element. As far as I know, there are no easy ways (with Python) to change the formatting of an XML file. So, it will probably happen again when I make new commits. Any ideas on how to avoid this problem? |
@klosoter |
@klosoter Up to now, Lowfat has always been generated from Nodes using an XQuery that does the right thing. I don't think it's good to update the two in parallel, I think one should be generated from the other. |
Let's generate lowfat from the other trees, then. Indenting attributes on a new line is not something pretty print or xmlformatter can do. |
I can regenerate the lowfat trees right now on your branch. However, did we resolve the nodes that were getting dropped? |
I did |
Also, I made some changes in lowfat (there were duplicate xml:id) and some Node/m that should have been wg/w. |
This is about macula-hebrew right? @ryderwishart |
Yes that's right @klosoter. Didn't notice it was the wrong repo. 🤦♂️ |
Whitespace in Lowfat has changed in ways that make it harder to read in some editors.
Could we please restore whitespace to the previous form? This is probably as simple as running the transform originally used to create it, making sure we keep all the attributes.
The text was updated successfully, but these errors were encountered: