diff options
| author | Alexandru Scvortov <alexandru@rabbitmq.com> | 2010-06-09 12:27:45 +0100 |
|---|---|---|
| committer | Alexandru Scvortov <alexandru@rabbitmq.com> | 2010-06-09 12:27:45 +0100 |
| commit | 3110b6a90282867f78a6bbc3ce3575ae72c330f9 (patch) | |
| tree | 87bcc1c8e2973dc502ffcf49286a9aa1438a3789 /codegen.py | |
| parent | ac1d667b939c8baf0c0f224457b064cdf478d71d (diff) | |
| download | rabbitmq-server-git-3110b6a90282867f78a6bbc3ce3575ae72c330f9.tar.gz | |
spaces instead of tabs in autogenerated code
Diffstat (limited to 'codegen.py')
| -rw-r--r-- | codegen.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/codegen.py b/codegen.py index dae2ef8c69..86d10f3938 100644 --- a/codegen.py +++ b/codegen.py @@ -110,9 +110,9 @@ def multiLineFormat(things, prologue, separator, lineSeparator, epilogue, things def prettyType(typeName, subTypes, typesPerLine = 4): """Pretty print a type signature made up of many alternative subtypes""" sTs = multiLineFormat(subTypes, - "( ", " | ", "\n\t| ", " )", + "( ", " | ", "\n | ", " )", thingsPerLine = typesPerLine) - return "-type(%s ::\n\t%s)." % (typeName, sTs) + return "-type(%s ::\n %s)." % (typeName, sTs) def printFileHeader(): print """%% Autogenerated code. Do not edit. |
