dita4publishers / org.dita4publishers.dita2indesign

DITA to InCopy and InDesign generation support
Apache License 2.0
2 stars 2 forks source link

Line break in first processing instruction causes Windows Explorer to crash #5

Closed scalderwood closed 9 years ago

scalderwood commented 9 years ago

The current code for creating the first processing instruction results in this: <?aid style="50" type="snippet" readerVersion="6.0" featureSet="257" product="7.5(142)" ?>

That causes Windows Explorer to crash. Something with Adobe's programming responsible for handling icons within Windows Explorer does not like any line breaks in that processing instruction. I kid you not. Removing the line break does not cause Windows Explorer to crash. This is true for Adobe CC on Windows; I am not sure if it is true for earlier versions.

Fix is to produce the processing instruction without any line breaks in it. Commit forthcoming.

scalderwood commented 9 years ago

Also have confirmed this fix does not cause problems on OS X for CS6 or CC (as expected).