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

DeepL Auto-closing BR tags #770

Open
Joshdw opened this issue Sep 21, 2022 · 1 comment
Open

DeepL Auto-closing BR tags #770

Joshdw opened this issue Sep 21, 2022 · 1 comment

Comments

@Joshdw
Copy link

Joshdw commented Sep 21, 2022

Hey, just wanted to share that DeepL machine translations will often auto-close BR tags for some reason when supplied with HTML code.

For example:

Need help choosing<br>a product?

will turn into

Brauchen Sie Hilfe bei der Auswahl eines<br>Produkts?</br>

or

Necesitas ayuda con la elección de un<br>Producto?</br>

This doesn't seem to happen with Google option when I tested it.

@vslavik
Copy link
Owner

vslavik commented Sep 22, 2022

This is an artefact of Poedit using XML tag handling to preserve markup. DeepL has html tag handling (which is more appropriate here) in beta now: https://www.deepl.com/docs-api/html/ I'm a bit vary about using beta features, but it would make sense to either do it for detected non-XML markup or translate HTML to XHTML on Poedit's end.

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

2 participants