Skip to content

Convert to PGML: add the ability to parse loadMacros if the arguments are in a qw#1425

Open
pstaabp wants to merge 2 commits into
openwebwork:PG-2.21from
pstaabp:pgml-convert-improvements
Open

Convert to PGML: add the ability to parse loadMacros if the arguments are in a qw#1425
pstaabp wants to merge 2 commits into
openwebwork:PG-2.21from
pstaabp:pgml-convert-improvements

Conversation

@pstaabp
Copy link
Copy Markdown
Member

@pstaabp pstaabp commented May 28, 2026

Add the ability to parse loadMacros if the arguments are in a qw block. Also, removes empty macros and duplicate macros.

In addition, if it appears that the problem is already in PGML mode, then return the file without changes.

This is in response to openwebwork/webwork2#2908

block.  Also, removes empty macros and duplicate macros.

In addition, if it appears that the problem is already in PGML mode,
then return the file without changes.
@pstaabp pstaabp changed the title Add the ability to parse loadMacros if the arguments are in a qw Convert to PGML: add the ability to parse loadMacros if the arguments are in a qw May 29, 2026
Comment thread lib/WeBWorK/PG/ConvertToPGML.pm Outdated
sub convertToPGML {
my ($pg_source) = @_;

print dumper ($pg_source);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you forget to remove this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. Just fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants