Please check in your editor
settings how to automatically replace tabs with 4 spaces.
Not always 4, but 1..4 spaces, the right number so that the following
character is at a multiple of four characters from the start of the
line.
Also, whether that is the correct thing to do for a source file that
has freshly been edited and had hardcoded TABs inserted depends on
what the tab stop setting in the editor was. If it was 8 (the
traditional Unix tab size), and the programmer has lined up
indentations of new and/or edited lines that now have TABs to match
existing code lines (without TABs), the newly inserted TABs should be
expanded to 1..8 spaces, of course, to retain the same visual
appearance.
Sure, you probably know the above and just over-simplified. But I
*have* seen some people understand the "replace tabs with 4 spaces"
mantra literally.
--tml
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.