%
% plarydshln.sty
% written by Hironobu Yamashita (@aminophen)
%
% This package is part of the plautopatch bundle.
% https://github.com/aminophen/plautopatch
%
% This package is expected to be compatible with
%   * arydshln.sty
%     (2004/08/31 v1.71 -- 2019/02/21 v1.76)
%   * plcore.ltx in platex
%     (2001/09/26 v1.2a -- 2021/06/03 v1.3j)
%

%% package declaration
\NeedsTeXFormat{pLaTeX2e}
\ProvidesPackage{plarydshln}
  [2018/10/20 v0.4 arydshln package for pLaTeX/upLaTeX]
\RequirePackage{arydshln}

%% handle package compatibility issues beforehand
\@ifpackageloaded{array}{\RequirePackage{plarray}}{}

%% patching internal code for arydshln.sty
%
%% remove extra \xkanjiskip (pLaTeX2e 2016/04/17)
\@ifl@t@r{\pfmtversion}{2016/04/17}{\@firstofone}{\@gobble}
{% = for pLaTeX2e 2016/04/17 or newer
\def\endtabular{\endarray $\egroup\null}
\expandafter\let\csname endtabular*\endcsname\endtabular
}% =
%
%% done

\endinput
