Skip to content

fill-paragraph breaks code structure #9

@andreyorst

Description

@andreyorst

Sorry if I'm overwhelming you with issues, but I've finally got my hands on your package, and had put it to the test.

Here's the recording https://asciinema.org/a/ykl6Brm5oH8K49s5R45Elsw25

What I'm doing is this: when cursor is outside the doc string I'm pressing C-q that runs fill-paragraph function, which hard wraps text. This works correct for both cases when cursor is before doc string and after doc string. But when it is inside doc string the structure of above code changes.

This doesn't seem to happen in non Clojure buffers. Here's example code:

(ns some-namespace.core
  (:import [java.util.concurrent Executors])
  (:require [clojure.string :as string]))

(defn foo
  "pretty long docsting that will be affected by `fill-paragraph` function"
  [x]
  x)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions