View Issue Details

IDProjectCategoryView StatusLast Update
0003947The Dark ModCodingpublic17.03.2017 01:30
Reporteruser81Assigned ToSteveL  
PrioritynormalSeveritynormalReproducibilityN/A
Status resolvedResolutionfixed 
PlatformWin32OSWindowsOS Version7 sp1
Product VersionSVN 
Fixed in VersionTDM 2.03 
Summary0003947: Condump's without word-wrap.
DescriptionCurrently the condump create's a basic texture file with word-wrap, the issue is there is no way to remove the carriage returns after the fact.
TagsNo tags attached.

Activities

SteveL

SteveL

04.12.2014 19:14

developer   ~0007199

Last edited: 04.12.2014 19:16

View 2 revisions

There's a small problem: the condump command just reads off what's displayed on the console and what's on the console contains no linebreaks. When text gets printed to the console, the printer function first wraps words that'll go over the end of the line, and then converts line breaks plus the space after wrapped words into spaces to fill up the rest of the line. That means that when the condump command comes to read the text off the console, it won't know whether to add a linebreak after a fullish line or not.

We can add a fix for Biker's specific situation: long file paths being broken up by linebreaks. We can add an "unwrap" keyword that doesn't change any existing behaviour but that stitches together any lines that end in a non-space. That'll give a few false positives -- the occasional message that happened to end exactly on the final character of the console line will get the next line joined to it -- but it'll be an optional keyword so that shouldn't cause anyone any problems.

SteveL

SteveL

04.12.2014 19:14

developer   ~0007200

At rev 6333

framework/Console.cpp
grayman

grayman

17.03.2017 01:30

administrator   ~0008768

Usage:

> condump unwrap filename

Issue History

Date Modified Username Field Change
30.11.2014 14:48 user81 New Issue
30.11.2014 19:07 SteveL Assigned To => SteveL
30.11.2014 19:07 SteveL Status new => assigned
04.12.2014 19:14 SteveL Note Added: 0007199
04.12.2014 19:14 SteveL Note Added: 0007200
04.12.2014 19:15 SteveL Status assigned => resolved
04.12.2014 19:15 SteveL Fixed in Version => TDM 2.03
04.12.2014 19:15 SteveL Resolution open => fixed
04.12.2014 19:16 SteveL Note Edited: 0007199 View Revisions
17.03.2017 01:30 grayman Note Added: 0008768