freeotp / freeotp-ios

Apache License 2.0
686 stars 173 forks source link

Remove abnormal unicode Line Separator U+2028 char #356

Closed PeterDaveHello closed 4 months ago

PeterDaveHello commented 5 months ago

Added in FreeOTP/Base.lproj/Main.storyboard in the PR/commit below:

Vim screenshot:

image

VSCode warning when opening this file:

image

Difference from the view of the git command line interface:

diff --git a/FreeOTP/Base.lproj/Main.storyboard b/FreeOTP/Base.lproj/Main.storyboard
index 68c8cc0..f573f35 100644
--- a/FreeOTP/Base.lproj/Main.storyboard
+++ b/FreeOTP/Base.lproj/Main.storyboard
@@ -504,7 +504,7 @@
                             <stackView opaque="NO" contentMode="scaleToFill" axis="vertical" alignment="top" spacing="30" translatesAutoresizingMaskIntoConstraints="NO" id="pQa-Lk-vD0">
                                 <rect key="frame" x="64" y="111" width="246.5" height="209"/>
                                 <subviews>
-                                    <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Your token provider has <U+2028>not configured the issuer <U+2028>field, please enter the name <U+2028>of the issuer" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="6" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rk9-rR-33m">
+                                    <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Your token provider has not configured the issuer field, please enter the name of the issuer" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="6" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rk9-rR-33m">
                                         <rect key="frame" x="0.0" y="0.0" width="246.5" height="95.5"/>
                                         <fontDescription key="fontDescription" type="system" pointSize="20"/>
                                         <nil key="textColor"/>

Unicode Line Separator U+2028 reference:

PeterDaveHello commented 5 months ago

cc #144 author @justin-stephenson 😄

justin-stephenson commented 4 months ago

Thanks for catching this.