From e9d409b42f758ba6b6c81982a7195059a649f4ca Mon Sep 17 00:00:00 2001 From: Kees van Spelde Date: Tue, 22 Oct 2024 09:56:48 +0200 Subject: [PATCH] Typo's and things like that --- ChromiumHtmlToPdfLib/ConvertUri.cs | 6 +++--- ChromiumHtmlToPdfLib/Enums/Browser.cs | 6 +++--- ChromiumHtmlToPdfLib/Enums/WindowSize.cs | 4 ++-- ChromiumHtmlToPdfLib/Event/MessageRecievedEventArgs.cs | 4 ++-- .../Exceptions/ChromiumNavigationException.cs | 4 ++-- ChromiumHtmlToPdfLib/Helpers/ChromeFinder.cs | 2 +- ChromiumHtmlToPdfLib/Helpers/ExceptionHelper.cs | 4 ++-- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/ChromiumHtmlToPdfLib/ConvertUri.cs b/ChromiumHtmlToPdfLib/ConvertUri.cs index 6b3e149..2d613b8 100644 --- a/ChromiumHtmlToPdfLib/ConvertUri.cs +++ b/ChromiumHtmlToPdfLib/ConvertUri.cs @@ -65,7 +65,7 @@ public ConvertUri(string uriString, Dictionary? requestHeaders = /// Sets the uri and encoding /// /// The uri, e.g. file://c:\test.txt - /// The encoding used for this file, e.g UTF-8 + /// The encoding used for this file, e.g. UTF-8 /// The request headers to sent public ConvertUri(string uriString, Encoding? encoding, Dictionary? requestHeaders = null) : base(uriString) { @@ -77,7 +77,7 @@ public ConvertUri(string uriString, Encoding? encoding, Dictionary /// The uri, e.g. file://c:\test.txt - /// The encoding used for this file, e.g UTF-8 + /// The encoding used for this file, e.g. UTF-8 /// The request headers to sent public ConvertUri(string uriString, string? encoding, Dictionary? requestHeaders = null) : base(uriString) { @@ -157,4 +157,4 @@ protected ConvertUri(SerializationInfo serializationInfo, StreamingContext strea RequestHeaders = requestHeaders; } #endregion -} \ No newline at end of file +} diff --git a/ChromiumHtmlToPdfLib/Enums/Browser.cs b/ChromiumHtmlToPdfLib/Enums/Browser.cs index 60b083a..3ec4bf7 100644 --- a/ChromiumHtmlToPdfLib/Enums/Browser.cs +++ b/ChromiumHtmlToPdfLib/Enums/Browser.cs @@ -27,12 +27,12 @@ namespace ChromiumHtmlToPdfLib.Enums; /// -/// The paper formats to use when converting to PDF +/// The browser to use when converting to PDF /// public enum Browser { /// - /// Use Google Chrome to as headless browser + /// Use Google Chrome as headless browser /// Chrome, @@ -40,4 +40,4 @@ public enum Browser /// Use Microsoft Edge as headless browser /// Edge -} \ No newline at end of file +} diff --git a/ChromiumHtmlToPdfLib/Enums/WindowSize.cs b/ChromiumHtmlToPdfLib/Enums/WindowSize.cs index 071b9c3..d74292f 100644 --- a/ChromiumHtmlToPdfLib/Enums/WindowSize.cs +++ b/ChromiumHtmlToPdfLib/Enums/WindowSize.cs @@ -29,7 +29,7 @@ namespace ChromiumHtmlToPdfLib.Enums; /// -/// The default Window sizes +/// The default Window sizes /// public enum WindowSize { @@ -122,4 +122,4 @@ public enum WindowSize /// 3840 x 2160 /// _4K_UHD -} \ No newline at end of file +} diff --git a/ChromiumHtmlToPdfLib/Event/MessageRecievedEventArgs.cs b/ChromiumHtmlToPdfLib/Event/MessageRecievedEventArgs.cs index 6b33ce2..ddcd42d 100644 --- a/ChromiumHtmlToPdfLib/Event/MessageRecievedEventArgs.cs +++ b/ChromiumHtmlToPdfLib/Event/MessageRecievedEventArgs.cs @@ -13,11 +13,11 @@ public class MessageReceivedEventArgs : EventArgs public string Message { get; } /// - /// Raised when a massage is received + /// Raised when a message is received /// /// public MessageReceivedEventArgs(string message) { Message = message; } -} \ No newline at end of file +} diff --git a/ChromiumHtmlToPdfLib/Exceptions/ChromiumNavigationException.cs b/ChromiumHtmlToPdfLib/Exceptions/ChromiumNavigationException.cs index e55f684..7217fe2 100644 --- a/ChromiumHtmlToPdfLib/Exceptions/ChromiumNavigationException.cs +++ b/ChromiumHtmlToPdfLib/Exceptions/ChromiumNavigationException.cs @@ -30,7 +30,7 @@ namespace ChromiumHtmlToPdfLib.Exceptions; /// -/// Raised when an error is returned when navigation to a page in Chrome +/// Raised when an error is returned when navigation to a page in Chromium /// [Serializable] public class ChromiumNavigationException : Exception @@ -67,4 +67,4 @@ internal ChromiumNavigationException(string message) : base(message) internal ChromiumNavigationException(string message, Exception innerException) : base(message, innerException) { } -} \ No newline at end of file +} diff --git a/ChromiumHtmlToPdfLib/Helpers/ChromeFinder.cs b/ChromiumHtmlToPdfLib/Helpers/ChromeFinder.cs index a176195..e8df448 100644 --- a/ChromiumHtmlToPdfLib/Helpers/ChromeFinder.cs +++ b/ChromiumHtmlToPdfLib/Helpers/ChromeFinder.cs @@ -88,7 +88,7 @@ private static string GetAppPath() /// internal static string? Find() { - // For Windows we first check the registry. This is the safest + // For Windows, we first check the registry. This is the safest // method and also considers non-default installation locations. // Note that Chrome x64 currently (February 2019) also gets installed // in Program Files (x86) and uses the same registry key! diff --git a/ChromiumHtmlToPdfLib/Helpers/ExceptionHelper.cs b/ChromiumHtmlToPdfLib/Helpers/ExceptionHelper.cs index 6ca65f7..ebc7019 100644 --- a/ChromiumHtmlToPdfLib/Helpers/ExceptionHelper.cs +++ b/ChromiumHtmlToPdfLib/Helpers/ExceptionHelper.cs @@ -64,7 +64,7 @@ public static string GetCurrentMethodName(Assembly? assembly) #region GetInnerException /// - /// Returns the full exception with it's inner exceptions as a string + /// Returns the full exception with its inner exceptions as a string /// /// The exception /// @@ -79,4 +79,4 @@ public static string GetInnerException(Exception? exception) return result; } #endregion -} \ No newline at end of file +}