提交 ce46c5da 编写于 作者: J Jingwen Owen Ou

Merge branch 'pull_requets_compat'

......@@ -4,14 +4,15 @@ import (
"bufio"
"bytes"
"fmt"
"github.com/jingweno/gh/cmd"
"github.com/jingweno/gh/git"
"io"
"io/ioutil"
"os"
"path/filepath"
"regexp"
"strings"
"github.com/jingweno/gh/cmd"
"github.com/jingweno/gh/git"
)
func NewEditor(topic, message string) (editor *Editor, err error) {
......@@ -68,6 +69,7 @@ func (e *Editor) EditTitleAndBody() (title, body string, err error) {
return
}
content = bytes.TrimSpace(content)
reader := bufio.NewReader(bytes.NewReader(content))
title, body, err = readTitleAndBody(reader)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册