Matching from a footnote with default size may set all footnotes to 11 pt
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- Mezza giornata
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- javascript
- Ambito
- documentation
Direzione di ricerca
Start in src/Code.js, at readStyle_ and inheritedTextAttributes_, where FONT_SIZE and FONT_FAMILY get filled in from the paragraph's named style through Body.getHeadingAttributes. The issue is unconfirmed, so first reproduce it in a test Google Doc: add a footnote, change only its font, run Match all footnotes, and check the sizes. Done means that footnotes keep the source footnote's inherited size (10 pt) and that the same handling covers FONT_FAMILY. No test file is named, so verify by hand in a live document.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
When the source footnote's font size is inherited rather than set directly, readStyle_ fills in the size from the paragraph's named style (Normal text) via Body.getHeadingAttributes. Normal text is usually 11 pt, while Google Docs footnotes default to 10 pt. Matching from a footnote whose size was never changed may therefore set every footnote to 11 pt.
This hasn't been confirmed in a live document yet.
Steps to reproduce
- Add a new footnote to a document. Change only its font (e.g. to Georgia), leaving the size at the default.
- Put the cursor in that footnote and choose Match all footnotes to selection.
- Check the font size of the footnotes.
Expected
The footnotes keep the size shown in the source footnote (10 pt).
Actual (suspected)
The footnotes become 11 pt (the Normal text size).
Possible fix
When the source character is inside a footnote, don't fill in FONT_SIZE from Normal text. Either skip it when it's inherited, or treat 10 pt as the inherited footnote size. Do the same check for FONT_FAMILY.
Relevant code: readStyle_ and inheritedTextAttributes_ in src/Code.js.
Generated by Claude Code
- Lingua principale
- JavaScript
- Stelle
- 0
- Fork
- 0
- Merge medio
- 6m
- PR unite (30g)
- 4
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Tanman310/footnote-matcher
-
documentation good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
-
bug good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
Tutte le issue di Tanman310/footnote-matcher
Issue simili
-
accessibility area: css area: web ui bug difficulty: easy frontend good first issue help wanted javascript journey: first-visit journey: mobile priority: P3 quality tech: css tech: html typescript ui user-experience
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
themactep/thingino-firmware#2018 ·
I maintainer di solito rispondono entro 1 giorno
-
[analytics-core] getQueryParams does not decode `+` as space and truncates values containing `=`Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
amplitude/Amplitude-TypeScript#2179 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
cloudinary/js-url-gen#608 ·
-
ci: raise .github/workflows/test.yml timeout-minutes from 20 to 35 as suite exceeds 30,899 testsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
Jason-Vaughan/TangleClaw#3075 ·
I maintainer di solito rispondono entro 1 giorno