View Issue Details

IDProjectCategoryView StatusLast Update
0017041ScribusStylespublic2023-11-05 16:42
ReporterDarkoni Assigned To 
PrioritynormalSeveritytrivialReproducibilityalways
Status newResolutionopen 
PlatformFedora 38OSLinuxOS VersionLinux
Product Version1.7.0.svn 
Summary0017041: Style Manager does not show 'imported' Paragraph Styles with script function insertHtmlText
DescriptionStyle Manager does not show 'imported' Paragraph Styles with script function insertHtmlText

Try the script that imports text from HTML file

[code]

margins = ( 10 , 10 , 10 , 10 )

newDocument( PAPER_A3_MM , margins , LANDSCAPE , 1 , UNIT_MM , NOFACINGPAGES , FIRSTPAGERIGHT , 1 )

createText( x , y , width , height , "Text1" )

insertHtmlText("text.html", "Text1")

[/code]

Open Style Manager - only Default Paragraph Style is shown.

[img]https://i.ibb.co/kMzBFrW/style-manager-1.png[/img]

...

Click on Edit, and you can see other imported Paragraph Styles like HTML_h1, HTML_h2, ... HTML_h6, HTML_p.

[img]https://i.ibb.co/h1gCkyy/style-manager-2.png[/img]

...

Click Done and - voila - all that Paragraph Styles are now visible.

[img]https://i.ibb.co/0KW4vBN/style-manager-3.png[/img]

...

When you manually import HTML (in new created document) with Scribus GUI, than all Paragraph Styles are immediately visible.

Tested with Scribus 1.7.0.svn and Scribus 1.5.8. on Fedora 38.

PS: I added lines into script to print Paragraph Styles, and all styles are shown, but not in Style Manager.

[code]
print()
print("### getParagraphStyles ###")
print(getParagraphStyles())
print()
[/code]

Script shows Paragraph Styles:

[code]
### getParagraphStyles ###
['Default Paragraph Style', 'HTML_p', 'HTML_h1', 'HTML_h2', 'HTML_h3', 'HTML_h4', 'HTML_h5', 'HTML_h6']
[/code]
TagsNo tags attached.
PatchNo

Activities

Darkoni

2023-11-05 16:39

reporter  

style_manager_1.png (60,074 bytes)   
style_manager_1.png (60,074 bytes)   
style_manager_2.png (76,751 bytes)   
style_manager_2.png (76,751 bytes)   
style_manager_3.png (69,812 bytes)   
style_manager_3.png (69,812 bytes)   

Darkoni

2023-11-05 16:41

reporter   ~0050418

Darkoni

2023-11-05 16:42

reporter   ~0050419

text.html.zip (2,059 bytes)

Issue History

Date Modified Username Field Change
2023-11-05 16:39 Darkoni New Issue
2023-11-05 16:39 Darkoni File Added: style_manager_1.png
2023-11-05 16:39 Darkoni File Added: style_manager_2.png
2023-11-05 16:39 Darkoni File Added: style_manager_3.png
2023-11-05 16:41 Darkoni Note Added: 0050418
2023-11-05 16:42 Darkoni Note Added: 0050419
2023-11-05 16:42 Darkoni File Added: text.html.zip