Skip to content
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

Formatting issues in 1.1.0 in Foundry (system: The Dark Eye) #32

Closed
cswendrowski opened this issue Sep 30, 2021 · 5 comments
Closed

Formatting issues in 1.1.0 in Foundry (system: The Dark Eye) #32

cswendrowski opened this issue Sep 30, 2021 · 5 comments

Comments

@cswendrowski
Copy link

In GitLab by @Fulla3 on Sep 30, 2021, 12:27

After updating to the new version (yeah, the module is not dead! :-)), I started to re-sync my articles, and I've been experiencing some formatting issues. The problem occurs as soon as I edit an entry within Foundry (I wanted to get rid of spoilers, as the spoiler tags from World Anvil don't transfer and spoilers just show up as regular text).

Character entry pre-editing:

charpreedit

Character entry after I edited something in the main character description text (not anywhere close to the now messed up formatting):

newchar

Note how from "date of birth" forward, everything appears as one single block of text.

Formatting issues continue in the other sections as well as soon as I edit anywhere - like when I edit something in the family section here to remove the spoiler:

preedit

It messes up this section here (religion etc.) as well as the formatting of the date of birth, height etc. section further up in the entry (the the screenshot above).

postedit

@cswendrowski
Copy link
Author

Thanks for the issue report. I'll work with @adrien.schiehle to understand how the 1.1.0 changes impact the editor markup here.

@cswendrowski
Copy link
Author

In GitLab by @Fulla3 on Sep 30, 2021, 12:57

Thank you so much for further developing this module!

@cswendrowski
Copy link
Author

In GitLab by @adrien.schiehle on Sep 30, 2021, 14:28

Hello, I managed to reproduce it.

The problem comes from the behavior of the editor when he finds data like that :

<dt>General Details</dt>
<dd>A top sidebar</dd>

It doesn't know how to behave and put the whole data inside a paragraph :

<p>General DetailsA top sidebar</p>

Needless to say: it becomes ugly.

<dt>and <dd> were meant for small article sections. I think it was already here in previous version but we may have changed the size condition on what a small section is. It's now the case for all section with less that 100 caracters.

The easy way to solve it would be to replace it by :

<h3>General Details</h3>
<p>A top sidebar</p>

We will have <h2> tags for big sections and <h3> for small ones.

I will with Atropos if he prefers making the editor works with <dt> tags.

@cswendrowski
Copy link
Author

In GitLab by @adrien.schiehle on Sep 30, 2021, 14:47

My bad, answered to hastly. The <dl> tag was missing.

Patch in progress

@cswendrowski
Copy link
Author

This issue has been fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant