Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Replace archived Open-XML-PowerTools with Clippit #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cmartin303 wants to merge 1 commit into JSv4:main
base: main
Choose a base branch
Loading
from cmartin303:feature/clippit-backend
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion csproj/Program.cs
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.IO;
using OpenXmlPowerTools;
using Clippit;
using Clippit.Word;
using DocumentFormat.OpenXml.Packaging;

class Program
Expand Down
3 changes: 1 addition & 2 deletions csproj/redlines.csproj
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="DocumentFormat.OpenXml" Version="2.8.1" />
<PackageReference Include="Open-Xml-PowerTools" Version="4.4.0" />
<PackageReference Include="Clippit" Version="3.0.1" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/python_redlines/__about__.py
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024-present U.N. Owen <void@some.where>
#
# SPDX-License-Identifier: MIT
__version__ = "0.0.4"
__version__ = "0.0.5"
7 changes: 5 additions & 2 deletions tests/test_openxml_differ.py
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,21 @@


def load_docx_bytes(file_path):
# Handle relative paths from test directory
if not os.path.isabs(file_path):
file_path = os.path.join(os.path.dirname(__file__), file_path)
with open(file_path, 'rb') as file:
return file.read()


@pytest.fixture
def original_docx():
return load_docx_bytes('tests/fixtures/original.docx')
return load_docx_bytes('fixtures/original.docx')


@pytest.fixture
def modified_docx():
return load_docx_bytes('tests/fixtures/modified.docx')
return load_docx_bytes('fixtures/modified.docx')


def test_run_redlines_with_real_files(original_docx, modified_docx):
Expand Down

AltStyle によって変換されたページ (->オリジナル) /