Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit 0327fc0

Browse files
committed
parser/gdoc: don't replace existing title
1 parent b5da225 commit 0327fc0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

claat/parser/gdoc/parse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func parseDoc(doc *html.Node) (*types.Codelab, error) {
205205
break
206206
}
207207
switch {
208-
case hasClass(ds.cur, "title"):
208+
case hasClass(ds.cur, "title") && ds.clab.Title == "":
209209
ds.clab.Title = stringifyNode(ds.cur, true)
210210
case ds.cur.DataAtom == atom.Table:
211211
metaTable(ds)

0 commit comments

Comments
 (0)