[duxhelp] joining styles
- From: "Mike Gorse" <mike@xxxxxxxxxx>
- To: <duxhelp@xxxxxxxxxxxxx>
- Date: Tue, 4 Apr 2006 17:20:24 -0400
Michael was trying to join styles after selecting everything in a document
and noticed that it didn't work the way he was trying to do it.
Currently, joining styles does the following:
- Check whether a style is active at the location of the mark (where the
selection started). If so, join the selection with it.
- If no style was active at the mark, look for an active style at the
- If no style was active at the mark or the cursor, give up and do nothing.
When selecting all, no style is active at the mark before the cursor
because, for instance, the mark might be placed at the beginning of the
document in front of the opening style code rather than just inside it.
Since no style is active at the beginning of the document or at the end
after the last closing style code, DBT gives up and does nothing.
Should this be changed?
Perhaps it should do something like the following:
1. Look for an active linear style at the mark.
2. If no style active, look for a linear style at the cursor.
3. If still no style, use the linear style closest to the mark.
Does anyone have any comments? It should not matter in which order searches
are done if the linear style at or next to the cursor is the same as the
linear style at or next to the mark, but it will matter if the styles are
* * *
* This message is via list duxhelp at freelists.org.
* To unsubscribe, send a blank message with
* as the subject to <duxhelp-request@xxxxxxxxxxxxx>. You may also
* subscribe, unsubscribe, and set vacation mode and other subscription
* options by visiting http://www.freelists.org. The list archive
* is also located there.
* Duxbury Systems' web site is http://www.duxburysystems.com
* * *
Other related posts:
- » [duxhelp] joining styles