add PrettyPrint option
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
### 4.2.3
|
||||
|
||||
- add PrettyPrint option
|
||||
|
||||
### 4.2.2
|
||||
|
||||
- use encoding found in HTTP headers in first iteration (fixes [issue #6](https://github.com/ceee/ReadSharp/issues/6))
|
||||
|
||||
@@ -27,6 +27,14 @@ namespace ReadSharp
|
||||
/// </value>
|
||||
public bool UseDeepLinks { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether the output will be formatted.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// <c>true</c> if [pretty print]; otherwise, <c>false</c>.
|
||||
/// </value>
|
||||
public bool PrettyPrint { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Creates the default options.
|
||||
/// </summary>
|
||||
@@ -37,7 +45,8 @@ namespace ReadSharp
|
||||
{
|
||||
HasHeaderTags = false,
|
||||
HasNoHeadline = false,
|
||||
UseDeepLinks = false
|
||||
UseDeepLinks = false,
|
||||
PrettyPrint = false
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,5 +22,5 @@
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("4.2.2")]
|
||||
[assembly: AssemblyFileVersion("4.2.2")]
|
||||
[assembly: AssemblyVersion("4.2.3")]
|
||||
[assembly: AssemblyFileVersion("4.2.3")]
|
||||
+1
-1
@@ -223,7 +223,7 @@ namespace ReadSharp
|
||||
{
|
||||
BodyOnly = !options.HasHeaderTags,
|
||||
NoHeadline = options.HasNoHeadline,
|
||||
PrettyPrint = true,
|
||||
PrettyPrint = options.PrettyPrint,
|
||||
DontIncludeContentTypeMetaElement = true,
|
||||
DontIncludeMobileSpecificMetaElements = true,
|
||||
DontIncludeDocTypeMetaElement = false,
|
||||
|
||||
Reference in New Issue
Block a user