|
|
#16 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,726
Karma: 6774572
Join Date: Nov 2009
Device: many
|
But I just checked the PrettyPrintProps.cpp code that generates the default prettyprinter.xml and it properly has span listed as an inline tag, not a block/structural tag.
So something strange is going on. Please shutdown Sigil, go to the Sigil Preferences folder snd delete the prettyprint.xml file then start up Sigil. Sigil should automatically recreate it as default. Then try your mend wnd prettify again. Does the bug still happen? |
|
|
|
|
|
#17 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,517
Karma: 212177546
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I'm not experiencing that span behavior in my tests with 2.8.0. They're definitely being treated as inline tags (I'm using the default prettyprint.xml). Can we have them confirm they've not made changes to their prettyprint.xml file already?
EDIT: Never mind. I see you're on it.
|
|
|
|
| Advert | |
|
|
|
|
#18 | |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,726
Karma: 6774572
Join Date: Nov 2009
Device: many
|
Quote:
I will keep my fingers crossed it is not a bug, just an accident. |
|
|
|
|
|
|
#19 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,726
Karma: 6774572
Join Date: Nov 2009
Device: many
|
Okay, I received the sample orig.xhtml and it has spans treated like strutural items. I then imported that file into Sigil-2.7.6 and ran Mend and Prettify. I did the same with Sigil 2.8.0 with Mend and Prettify then diffed the results. They were the same.
No so bug in Sigil. That said, the image of the output after running Sigil-2.8.0 prettify (see post above) showed no differences in how spans were treated from the original. This can only happen if that xhtml file was linked to a style-sheet that uses the white-space property. It is a new safety measure added in Sigil 2.8.0. My guess is that the stylesheet does use one of the css white-space properties and so Sigil 2.8.0 Mend and Prettify did not condense whitespace as it might damage the code. If the linked stylesheet has whitespace properties set, they should expect few if any changes to whitespace running mending and prettifying. If you want Mend and Prettify to actually condense whitespace properly. you should remove the use of white-space property in the css and instead wrap the code that needed it in "pre" open and close tags in the right places in the xhtml then remove that use of the white-space property. My guess is that is what is going on here. Hope this helps. Update: hypothesis confirmed in pm, its linked stylesheet used white-space: pre-wrap. So Sigil 2.8.0 is working properly. No bug. Last edited by KevinH; 06-17-2026 at 06:25 PM. |
|
|
|
|
|
#20 | |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,726
Karma: 6774572
Join Date: Nov 2009
Device: many
|
Quote:
I will try a few things to see if I can figure out why BBEdit is not parsing its command line args when it is already opened. Let me play around and see if I can come up with a some solution for Mac users of Sigil and BBEdit. Update: It seems when BBEdit.app (and any other Mac app that supports multiple main windows) is already running, it will only receive FileOpen Apple events and will no longer parse command line arguments. This is a Mac thing, so it is not a bug in BBEdit.app. But it is really next to impossible for Sigil to detect if you already have BBEdit open when you use Sigil's "Open With" so Sigil can not change how OpenWith is done dynamically. That said Sigil's Open With uses the MacOS command line program called "open" and one of open's command line switches (-n) tells the Mac to always open a new version of the app so it will always process its arguments. The Mac user will then see he/she/they have two instances of BBEdit in the Finder and both will have to be shutdown separately. So I will play around and make a test build of Sigil with this change for you to play with and let me know if it helps or hurts. Last edited by KevinH; 06-17-2026 at 09:06 PM. |
|
|
|
|
| Advert | |
|
|
|
|
#21 |
|
just an egg
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,936
Karma: 9245672
Join Date: Mar 2015
Device: Kindle, iOS
|
|
|
|
|
|
|
#22 | |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,726
Karma: 6774572
Join Date: Nov 2009
Device: many
|
Quote:
From my personal repo: https://github.com/kevinhendricks/Bu...nMac/releases/ grab: Sigil.app_Mac_arm64.tar.xz It is signed but NOT notarized. Please test this version's "Open With" with BBEdit.app and any other "Open With" targets you have set (I tested with the latest gimp and it seemed to work there too). If it works, please let me know and I will push these changes to master so they are there for the next release. You can keep using this special Sigil 2.8.0 version as it only has this change and one minor earlier bug fix since the official Sigil 2.8.0 for Mac. I have my fingers crossed. |
|
|
|
|
|
|
#23 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,998
Karma: 82524140
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
I kn ow this might be a stupid thought but could you handle the app launch issues by having Sigil launch a shell script that could be adjusted as needed to hanfle different app launching requirements?
|
|
|
|
|
|
#24 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,726
Karma: 6774572
Join Date: Nov 2009
Device: many
|
You could, but I am unsure if macos "open" handles a shell script directly or if you need to run that script in Terminal.app via open. Plus I think I have just pushed a workaround to master that I hope improves things on Mac OS.
If that works, I may change PageEdit code to auto exit when the last window is closed on Mac and launch it via MacOS open with -n to force a new instance of PageEdit each time since the arguments to PageEdit shouldn't ever be ignored if you want things to actually work. |
|
|
|
|
|
#25 | |
|
just an egg
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,936
Karma: 9245672
Join Date: Mar 2015
Device: Kindle, iOS
|
Quote:
|
|
|
|
|
|
|
#26 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,726
Karma: 6774572
Join Date: Nov 2009
Device: many
|
Glad to hear it!
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sigil 2.7.6 Released | DiapDealer | Sigil | 14 | 03-26-2026 11:16 AM |
| Sigil-2.4.0 Released | DiapDealer | Sigil | 55 | 01-31-2025 04:28 PM |
| Sigil-2.3.0 Released | DiapDealer | Sigil | 111 | 09-06-2024 04:14 PM |
| Sigil-1.1.0 Released | DiapDealer | Sigil | 56 | 03-25-2020 02:28 PM |
| Sigil-0.8.900 released for testing - Wait for Sigil-0.8.901 | KevinH | Sigil | 106 | 10-04-2015 10:41 AM |