[RESOLVED 0.10.14] Tabs in quest texts displaying as garbage

User avatar
BadLuckBurt
Posts: 948
Joined: Sun Nov 05, 2017 8:30 pm

Re: Tabs in quest texts displaying as garbage

Post by BadLuckBurt »

pango wrote: Sat Nov 30, 2019 10:32 pm What's strange is that it looks like the code is handling TABs specifically... but for some reason it doesn't work as expected :/
The Parser class does handle tabs for data in the ParseQBN that's read with ReadBlock but the messages are processed in ParseQRC in a different way I think
DFU on UESP: https://en.uesp.net/w/index.php?title=T ... fall_Unity
DFU Nexus Mods: https://www.nexusmods.com/daggerfallunity
My github repositories with mostly DFU related stuff: https://github.com/BadLuckBurt

.

User avatar
Jay_H
Posts: 4072
Joined: Tue Aug 25, 2015 1:54 am
Contact:

Re: Tabs in quest texts displaying as garbage [FIX UPLOADED]

Post by Jay_H »

It's quite likely I've used tabs in my custom quests, so it's odd that this is only now being reported. Perhaps it's an oddity of that user's system?

User avatar
pango
Posts: 3359
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: Tabs in quest texts displaying as garbage [FIX UPLOADED]

Post by pango »

Jay_H wrote: Sat Nov 30, 2019 11:20 pm It's quite likely I've used tabs in my custom quests, so it's odd that this is only now being reported. Perhaps it's an oddity of that user's system?
Indeed:

Code: Select all

dfunity-questpacks (master ✘)✭ ᐅ for i in $(find . -name '*.txt'); do awk '/\t/ { print "'$i'" }; /^QBN:/ { exit }' $i; done|uniq
./QuestPacks/QP1/DarkBrotherhood/JHDB010.txt
./QuestPacks/QP1/DarkBrotherhood/JHDB015.txt
./QuestPacks/QP1/FightersGuild/JHFG011.txt
./QuestPacks/QP1/KnightlyOrders/JHKN005.txt
./QuestPacks/QP1/KnightlyOrders/JHKN011.txt
./QuestPacks/QP1/KnightlyOrders/JHKN012.txt
However all those texts are centered, so indentation is probably skipped in this case?
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

User avatar
Jay_H
Posts: 4072
Joined: Tue Aug 25, 2015 1:54 am
Contact:

Re: Tabs in quest texts displaying as garbage [FIX UPLOADED]

Post by Jay_H »

I use both tabs and centering? I amaze myself :lol: Thanks for looking into that. I'll wait until someone reports a problem before I change them.

User avatar
pango
Posts: 3359
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: Tabs in quest texts displaying as garbage [FIX UPLOADED]

Post by pango »

Reported bug should be fixed since 0.10.14
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

Locked