hitting return on the first CSS declaration

Let us know what you would like to see in the next version of this software

Moderator: kfury77

Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
  • Do not create new topics for already requested features. Add your comments to the existing feature request topics instead;
  • Create separate topic for each feature suggestion. Do NOT post a number of non-related feature suggestions in a single topic;
  • Give your topic a meaningful title. Do NOT create topics with meaningless titles, such as "My Suggestion" or "My Problem".
Please note that we DO READ all suggestions, even if a reply is not posted. Thanks!
Post Reply
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

hitting return on the first CSS declaration

Post by syrupcore »

Starting with this code:

Code: Select all

.products{
    float: left;
    list-style-type: none;
    margin:10px 0;
}
If you put your cursor right before the "f" in float and hit return it ignores it's current tab position. you get this:

Code: Select all

.products{

float: left;
    list-style-type: none;
    margin:10px 0;
}
If you put your cursor right before the l in list-style-type it respects the current declaration's tab position. you get this:

Code: Select all

.products{
    float: left;

    list-style-type: none;
    margin:10px 0;
}
Is this happening to anyone else? I'm on 9.0.0.97.

Thanks,
Will
User avatar
MikeyB
Top Contributor
Posts: 511
Joined: Fri Jun 09, 2006 10:38 am
Location: UK
Contact:

Re: hitting return on the first CSS declaration

Post by MikeyB »

Hi Will,

Yes, can replicate the same here, also version 9.0.0.97

Mike
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Re: hitting return on the first CSS declaration

Post by chrisjlocke »

Kinda makes sense, as you're adding a new line based on the tab positions on the previous line (sort of...)
Its also a bug, as I guess it should be adding a line based on the current line tab positions.

A workaround (or the way I normally do it) is if I want a new line above float: left;, then put your cursor at the end of .products { and then hit Enter.

A similar thing happens in Word. Hit Enter at the start of a sentence with tabs, and its put on its own line (ie, disregarding the tabs) so this may be 'by design' in the editor engine.
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Re: hitting return on the first CSS declaration

Post by Karlis »

It makes sense, but it is not a bug. There is simply no special support or analysis. I'll think about improving this maybe.
Karlis Blumentals
Blumentals Software
www.blumentals.net
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Re: hitting return on the first CSS declaration

Post by syrupcore »

Moving to feature requests.

It would be nice. Not really a new feature as much as a refinement of a good feature.
Gatis
Blumentals Software Developer
Posts: 545
Joined: Sun Mar 05, 2006 12:30 am
Location: Latvia

Re: hitting return on the first CSS declaration

Post by Gatis »

Yes, it seems syrupcore is right about how this should work.
Kind regards,
Gatis Avots
Post Reply