-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
Wrong white space, small export bug to Fantasy Ground PC xml (dis/advantages) #154
Comments
Hmm... did you verify that the advantage in question didn't actually have a trailing space? At any rate, I'll look at it when I get a spare moment. |
Yes, I verified it with other advantages, too. Update: Sorry, regarding disadvantages there is something unclear, maybe it's not the case there, I'll recheck. |
Ok, rechecked it, for some reason it did not see it in one test case with disadvantages, but here is another example where I encountered the issue with the extra space at the ending and disads:
|
And by the way: Thank you for the great 4.32 update! :) thumbs up |
Can you attach the file you used to export with... and give me the name of the export template you used? Looking at the code, I'm not seeing anywhere that would add a trailing space like that, so would like to walk the code through the export sequence with a known failing case. |
In case my mail reply did not work (?), here is a sample gcs file along with the resulting Fantasy Grounds PC xml export. |
OK, so as I suspected, its not a code issue, but an output template issue. Specifically, things like this (from line 218 of the Fantasy Grounds PC.xml file): @DESCRIPTION_PRIMARY @DESCRIPTION_MODIFIER_NOTES_BRACKET Note the space between @DESCRIPTION_PRIMARY and @DESCRIPTION_MODIFIER_NOTES_BRACKET. In the case where there aren't any notes, the space is still emitted. You could fix that by removing the space, but then the resulting output when notes are present would be jammed up against the description. Not having Fantasy Grounds, I have no idea if that will work or not. Anyway, I'm happy to take a PR that fixes this -- but since I don't have Fantasy Grounds, I will just have to accept the submission on good faith and assume it works as needed for that tool. |
Hi,
just tried out the function in V.4.32 to export a character sheet for Fantasy Ground PC (xml format).
Basically it worked fine, but I found a little issue regarding the export of advantages:
The export file contains an additional (wrong) space character (blank, white space) at the end of the name string, as can be seen below in the example! I don't think it was intentional...
<adslist> <id-1429c314-d18d-4f50-a135-1bb1b6268cc7> <name type="string">Absolute Direction </name> <points type="number">5</points>
For the test I used GCS on Linux Mint 18.3 x64.
The text was updated successfully, but these errors were encountered: