Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Sorter replaces the reference to values from DOCTYPE resources #23

Open
umarhussain15 opened this issue May 7, 2018 · 1 comment
Open

Comments

@umarhussain15
Copy link

I'm setting some values using this mechanism to allow concatenation inside my xml.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<!DOCTYPE resources [
    <!ENTITY email_link_host "abc.com">
    ]>
<resources>
    <string name="email_url">https://&email_link_host;/someurl</string>
   <string name="other_url">https://&email_link_host;/otherurl</string>
</resources>

But after formatting the using the sorter it removes DOCTYPE and inject the variables into the resource string. After sort the output is:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<resources>
    <string name="email_url">https://abc.com/someurl</string>
   <string name="other_url">https://abc.com/otherurl</string>
</resources>

Please look into this issue.

@roana0229
Copy link
Owner

👀 Thanks.
I didn't know that can write <!DOCTYPE ... > in xml.
I don't have time to develop this plugin.
Can you make and send PR?

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

No branches or pull requests

2 participants