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

Empty line in output, even if there is no <br> or other Tag to parse #156

Closed
xstable opened this issue May 24, 2018 · 4 comments
Closed
Labels
bug:minor Low priority bug. bug Crush'em all.

Comments

@xstable
Copy link

xstable commented May 24, 2018

I have this HTML:

{"intro": "<p>Damit der Veranstaltungsbesuch ein schönes Erlebnis mit bleibender Erinnerung wird, bitten wir alle Festivalbesucher um die Beachtung der nachfolgenden Hinweise.<br></p><p>Informationen für Konzertbesucher und Antworten auf oft gestellte Fragen finden Sie hier: <a href=\"/besucherservice#faq\">FAQ</a></p><p>Bitte beachten Sie unsere: <a href=\"/besucherservice#sicherheitshinweise\">Sicherheitshinweise</a></p>"
}

This creates an additional empty line in the App:
auswahl_761

Here is my JSX:

 {(data.text !== undefined && data.text !== "") ?
                <Row >
                    <HTML style={styles.detailText}
                          html={data.text}
                          debug={false}
                          onLinkPress={(event, href) => {
                              //TODO: If internal link, use Navigate, instead of Linking ... to link in App instead of Browser.
                              Linking.openURL(ParseUrl(href)).catch(e => console.log("Fehler beim Aufruf der url: " + href, e));
                          }}
                          baseFontStyle={fontStyles}
                          tagsStyles={tagStyles}
                          imagesMaxWidth={Dimensions.get('window').width}
                    />
                </Row > : null
            }

It seems only to happen, if there is an <a href> as last element in front of the closing </p>-Tag.

@xstable xstable changed the title Why got an empty line if there is none? Empty line in output, even if there is no <br> or other Tag to parse May 24, 2018
@Exilz Exilz added the bug:minor Low priority bug. label Jun 7, 2018
@AishwaryaSurana
Copy link

Is this bug fixed? @Exilz
@xstable How are you able to fix it?

@egealpay
Copy link

egealpay commented Nov 7, 2019

Is it solved?

@jsamr jsamr added the bug Crush'em all. label Jul 19, 2020
@jsamr
Copy link
Collaborator

jsamr commented Nov 26, 2020

This feature is available in the Foundry release! Try it out now. Check #430 for instructions.

@jsamr jsamr mentioned this issue Nov 26, 2020
41 tasks
@jsamr
Copy link
Collaborator

jsamr commented Jun 8, 2021

Closing now since the stable beta which fixes this issue has just been released.

@jsamr jsamr closed this as completed Jun 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:minor Low priority bug. bug Crush'em all.
Projects
None yet
Development

No branches or pull requests

5 participants