- edited description
IDML Filter: improve the styles of unstyled elements at the beginning of a story
Issue #1182
new
Unstyled child elements, when they appear at the beginning of a story, obtain the style ranges of the first sibling with specified style ranges. For instance, the [No HTS, n paragraph style, n character style]
content from the snippet below
<Story Self="ue8" AppliedTOCStyle="n" TrackChanges="false" StoryTitle="$ID/" AppliedNamedGrid="n">
<StoryPreference OpticalMarginAlignment="false" OpticalMarginSize="12" FrameType="TextFrameType"
StoryOrientation="Horizontal" StoryDirection="LeftToRightDirection"/>
<InCopyExportOption IncludeGraphicProxies="true" IncludeAllResources="false"/>
<Content>[No HTS, n paragraph style, n character style]</Content>
<Br/>
<ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/Paragraph Style 1" LeftIndent="18"
FirstLineIndent="-18" BulletsAndNumberingListType="NumberedList">
<Content>[No HTS, Paragraph Style 1, n character style]</Content>
<Br/>
<CharacterStyleRange AppliedCharacterStyle="CharacterStyle/Hyperlink" Underline="false">
<HyperlinkTextSource Self="u106" Name="http://hyperlink-1.net 1" Hidden="false"
AppliedCharacterStyle="n">
<Content>http://hyperlink-1-0.net[n character style on HyperlinkTextSource]</Content>
<CharacterStyleRange AppliedCharacterStyle="CharacterStyle/Character Style 1">
<Content>[Character style 1]</Content>
<Br/>
</CharacterStyleRange>
</HyperlinkTextSource>
</CharacterStyleRange>
is rendered with
<ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/Paragraph Style 1" LeftIndent="18"
FirstLineIndent="-18" BulletsAndNumberingListType="NumberedList">
<CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]">
styles.
Here is a related UI:
With the pull request #669 changes the output looks like that:
<ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/$ID/NormalParagraphStyle">
<CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]">
<Content xml:space="preserve">[No HTS, n paragraph style, n character style]</Content>
<Br/>
</CharacterStyleRange>
</ParagraphStyleRange>
<ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/Paragraph Style 1"
BulletsAndNumberingListType="NumberedList" FirstLineIndent="-18"
LeftIndent="18">
<CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]">
<Content xml:space="preserve">[No HTS, Paragraph Style 1, n character style]</Content>
<Br/>
</CharacterStyleRange>
UI:
A related document can be found attached.
Comments (2)
-
reporter -
reporter - Log in to comment