Skip to content

Commit

Permalink
Allow zero indentation
Browse files Browse the repository at this point in the history
Its a no brainer and the quickest way to get rid of whitespace since this tool is indespensable anyway

I was wrestling all day with bindiff files with unreadable trailing space. I just need things like this to work
  • Loading branch information
john-peterson committed Jul 19, 2023
1 parent 12430ad commit dbd3b86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AStyle/src/astyle_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3273,7 +3273,7 @@ void ASOptions::parseOption(const std::string& arg, const std::string& errorInfo
std::string spaceNumParam = getParam(arg, "t", "indent=tab=");
if (spaceNumParam.length() > 0)
spaceNum = atoi(spaceNumParam.c_str());
if (spaceNum < 2 || spaceNum > 20)
if (spaceNum > 20)
isOptionError(arg, errorInfo);
else
{
Expand Down

0 comments on commit dbd3b86

Please sign in to comment.