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

space lost around <embed> #16

Closed
unhammer opened this issue May 31, 2021 · 2 comments
Closed

space lost around <embed> #16

unhammer opened this issue May 31, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@unhammer
Copy link

unhammer commented May 31, 2021

$ echo 'a <embed> e' |apertium -f html spa-eng
To<embed>And</embed>

expected:

To <embed> And</embed>

(or maybe To <embed/> And)

Full example was something like

<p>See <embed data-content-id="123" data-link-text="Spot" data-resource="concept" data-type="inline"> run.</p
@unhammer
Copy link
Author

unhammer commented Jun 2, 2021

tfspace.zip

$ cd /tmp
$ unzip ~/Downloads/tfspace.zip
$ $ tf-inject --keep -f html < /tmp/tfspace/repro
a<embed>e</embed>
$ cat /tmp/tfspace/repro
[transfuse:\/tmp\/tfspace\/repro.d]

[tf-block:1-j7FMRw]

a .[]

[tf-block:2-y6Sc6A]

 e
.[]

The spaces survived the regular pipeline, but were then removed by tf-inject. (I notice if I delete the NUL's before passing on to tf-inject, the spaces are retained (or actually copy-paste from terminal and not notice that there are in fact NUL's :)).)

@TinoDidriksen
Copy link
Owner

This seems to have been fixed at some point, probably in 9201d89

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants