Yosef Karo, Translation:Shulchan Aruch — Orach Chaim 582…
“ Rem"a: This is also true when Rosh Hashanah falls on Shabbat. The end of the blessing mentions only Shabbat. The same is true when Yom Kippur falls on Shabbat (Mahari"l and Minhagim) . סעיף גבשבת בינתים ערבית יאמר בברכת מעין שבע המלך הקדוש. הגה: והוא הדין אם חל ראש השנה בשבת. וחותם בשל שבת לבד, וכן כשחל יום כפור בשבת (מהרי"ל ומנהגים) . 582:4 Some have the practice of praying on Rosh Hashanah and Yom Kippur bent over. These people need to straighten up at the end of each blessing. ”
