Skip to content

Instantly share code, notes, and snippets.

@MetroWind
Last active December 7, 2016 00:55
Show Gist options
  • Save MetroWind/d4473afceec91f8313756db530c10287 to your computer and use it in GitHub Desktop.
Save MetroWind/d4473afceec91f8313756db530c10287 to your computer and use it in GitHub Desktop.
Emacs python-mode docstring fill bug. Emacs fills the 1st line of a docstring incorrectly. The fill width is counted from the """, where for the rest of the lines, the fill is counted from the beginning of the line. See bugs https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20860 and https://debbugs.gnu.org/cgi/bugreport.cgi?bug=21254
# -*- fill-column: 40; -*-
def f():
"""a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a
a a a a a
"""
def f():
"""a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a
a a a a a a a
"""
def f():
"""a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a
a a a a a a a a a
"""
# ↑
# column 40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment